﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="AscentQiPeiDataSet" targetNamespace="http://tempuri.org/AscentQiPeiDataSet.xsd" xmlns:mstns="http://tempuri.org/AscentQiPeiDataSet.xsd" xmlns="http://tempuri.org/AscentQiPeiDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="AscentQiPeiConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="AscentQiPeiConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Ascent.QiPei.Module.Win.Properties.Settings.GlobalReference.Default.AscentQiPeiConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AccountPayableTableAdapter" GeneratorDataComponentClassName="AccountPayableTableAdapter" Name="AccountPayable" UserDataComponentName="AccountPayableTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.AccountPayable" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[AccountPayable] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_APYCode = 1 AND [APYCode] IS NULL) OR ([APYCode] = @Original_APYCode)) AND ((@IsNull_Supplier = 1 AND [Supplier] IS NULL) OR ([Supplier] = @Original_Supplier)) AND ((@IsNull_SupplierTelphone = 1 AND [SupplierTelphone] IS NULL) OR ([SupplierTelphone] = @Original_SupplierTelphone)) AND ((@IsNull_GargoTeminal = 1 AND [GargoTeminal] IS NULL) OR ([GargoTeminal] = @Original_GargoTeminal)) AND ((@IsNull_GargoTeminalTelephone = 1 AND [GargoTeminalTelephone] IS NULL) OR ([GargoTeminalTelephone] = @Original_GargoTeminalTelephone)) AND ((@IsNull_PayableAmount = 1 AND [PayableAmount] IS NULL) OR ([PayableAmount] = @Original_PayableAmount)) AND ((@IsNull_PayabledAmount = 1 AND [PayabledAmount] IS NULL) OR ([PayabledAmount] = @Original_PayabledAmount)) AND ((@IsNull_DebtAmount = 1 AND [DebtAmount] IS NULL) OR ([DebtAmount] = @Original_DebtAmount)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_APYCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="APYCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_APYCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="APYCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SupplierTelphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SupplierTelphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SupplierTelphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierTelphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminalTelephone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_GargoTeminalTelephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PayableAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PayableAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PayableAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayableAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PayabledAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PayabledAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PayabledAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayabledAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DebtAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[AccountPayable] ([Oid], [APYCode], [Supplier], [SupplierTelphone], [GargoTeminal], [GargoTeminalTelephone], [PayableAmount], [PayabledAmount], [DebtAmount], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @APYCode, @Supplier, @SupplierTelphone, @GargoTeminal, @GargoTeminalTelephone, @PayableAmount, @PayabledAmount, @DebtAmount, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, APYCode, Supplier, SupplierTelphone, GargoTeminal, GargoTeminalTelephone, PayableAmount, PayabledAmount, DebtAmount, Remark, OptimisticLockField, GCRecord FROM AccountPayable WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@APYCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="APYCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SupplierTelphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierTelphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GargoTeminalTelephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PayableAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayableAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PayabledAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayabledAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, APYCode, Supplier, SupplierTelphone, GargoTeminal, GargoTeminalTelephone, PayableAmount, PayabledAmount, DebtAmount, Remark, OptimisticLockField, GCRecord FROM dbo.AccountPayable</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[AccountPayable] SET [Oid] = @Oid, [APYCode] = @APYCode, [Supplier] = @Supplier, [SupplierTelphone] = @SupplierTelphone, [GargoTeminal] = @GargoTeminal, [GargoTeminalTelephone] = @GargoTeminalTelephone, [PayableAmount] = @PayableAmount, [PayabledAmount] = @PayabledAmount, [DebtAmount] = @DebtAmount, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_APYCode = 1 AND [APYCode] IS NULL) OR ([APYCode] = @Original_APYCode)) AND ((@IsNull_Supplier = 1 AND [Supplier] IS NULL) OR ([Supplier] = @Original_Supplier)) AND ((@IsNull_SupplierTelphone = 1 AND [SupplierTelphone] IS NULL) OR ([SupplierTelphone] = @Original_SupplierTelphone)) AND ((@IsNull_GargoTeminal = 1 AND [GargoTeminal] IS NULL) OR ([GargoTeminal] = @Original_GargoTeminal)) AND ((@IsNull_GargoTeminalTelephone = 1 AND [GargoTeminalTelephone] IS NULL) OR ([GargoTeminalTelephone] = @Original_GargoTeminalTelephone)) AND ((@IsNull_PayableAmount = 1 AND [PayableAmount] IS NULL) OR ([PayableAmount] = @Original_PayableAmount)) AND ((@IsNull_PayabledAmount = 1 AND [PayabledAmount] IS NULL) OR ([PayabledAmount] = @Original_PayabledAmount)) AND ((@IsNull_DebtAmount = 1 AND [DebtAmount] IS NULL) OR ([DebtAmount] = @Original_DebtAmount)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, APYCode, Supplier, SupplierTelphone, GargoTeminal, GargoTeminalTelephone, PayableAmount, PayabledAmount, DebtAmount, Remark, OptimisticLockField, GCRecord FROM AccountPayable WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@APYCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="APYCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SupplierTelphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierTelphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GargoTeminalTelephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PayableAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayableAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PayabledAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayabledAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_APYCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="APYCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_APYCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="APYCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SupplierTelphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SupplierTelphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SupplierTelphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierTelphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminalTelephone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_GargoTeminalTelephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PayableAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PayableAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PayableAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayableAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PayabledAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PayabledAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PayabledAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayabledAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DebtAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="APYCode" DataSetColumn="APYCode" />
              <Mapping SourceColumn="Supplier" DataSetColumn="Supplier" />
              <Mapping SourceColumn="SupplierTelphone" DataSetColumn="SupplierTelphone" />
              <Mapping SourceColumn="GargoTeminal" DataSetColumn="GargoTeminal" />
              <Mapping SourceColumn="GargoTeminalTelephone" DataSetColumn="GargoTeminalTelephone" />
              <Mapping SourceColumn="PayableAmount" DataSetColumn="PayableAmount" />
              <Mapping SourceColumn="PayabledAmount" DataSetColumn="PayabledAmount" />
              <Mapping SourceColumn="DebtAmount" DataSetColumn="DebtAmount" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AccountPayableItemsTableAdapter" GeneratorDataComponentClassName="AccountPayableItemsTableAdapter" Name="AccountPayableItems" UserDataComponentName="AccountPayableItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.AccountPayableItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[AccountPayableItems] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_PayableDate = 1 AND [PayableDate] IS NULL) OR ([PayableDate] = @Original_PayableDate)) AND ((@IsNull_ModeOfPayment = 1 AND [ModeOfPayment] IS NULL) OR ([ModeOfPayment] = @Original_ModeOfPayment)) AND ((@IsNull_CurrentAmount = 1 AND [CurrentAmount] IS NULL) OR ([CurrentAmount] = @Original_CurrentAmount)) AND ((@IsNull_Summary = 1 AND [Summary] IS NULL) OR ([Summary] = @Original_Summary)) AND ((@IsNull_PayableNumber = 1 AND [PayableNumber] IS NULL) OR ([PayableNumber] = @Original_PayableNumber)) AND ((@IsNull_AssociationNubmers = 1 AND [AssociationNubmers] IS NULL) OR ([AssociationNubmers] = @Original_AssociationNubmers)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_AccountPayable = 1 AND [AccountPayable] IS NULL) OR ([AccountPayable] = @Original_AccountPayable)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PayableDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PayableDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_PayableDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="PayableDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CurrentAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CurrentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Summary" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PayableNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PayableNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PayableNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PayableNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AssociationNubmers" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountPayable" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_AccountPayable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[AccountPayableItems] ([Oid], [PayableDate], [ModeOfPayment], [CurrentAmount], [Summary], [PayableNumber], [AssociationNubmers], [Remark], [AccountPayable], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @PayableDate, @ModeOfPayment, @CurrentAmount, @Summary, @PayableNumber, @AssociationNubmers, @Remark, @AccountPayable, @OptimisticLockField, @GCRecord);
SELECT Oid, PayableDate, ModeOfPayment, CurrentAmount, Summary, PayableNumber, AssociationNubmers, Remark, AccountPayable, OptimisticLockField, GCRecord FROM AccountPayableItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@PayableDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="PayableDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CurrentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PayableNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PayableNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@AccountPayable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, PayableDate, ModeOfPayment, CurrentAmount, Summary, PayableNumber, AssociationNubmers, Remark, AccountPayable, OptimisticLockField, GCRecord FROM dbo.AccountPayableItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[AccountPayableItems] SET [Oid] = @Oid, [PayableDate] = @PayableDate, [ModeOfPayment] = @ModeOfPayment, [CurrentAmount] = @CurrentAmount, [Summary] = @Summary, [PayableNumber] = @PayableNumber, [AssociationNubmers] = @AssociationNubmers, [Remark] = @Remark, [AccountPayable] = @AccountPayable, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_PayableDate = 1 AND [PayableDate] IS NULL) OR ([PayableDate] = @Original_PayableDate)) AND ((@IsNull_ModeOfPayment = 1 AND [ModeOfPayment] IS NULL) OR ([ModeOfPayment] = @Original_ModeOfPayment)) AND ((@IsNull_CurrentAmount = 1 AND [CurrentAmount] IS NULL) OR ([CurrentAmount] = @Original_CurrentAmount)) AND ((@IsNull_Summary = 1 AND [Summary] IS NULL) OR ([Summary] = @Original_Summary)) AND ((@IsNull_PayableNumber = 1 AND [PayableNumber] IS NULL) OR ([PayableNumber] = @Original_PayableNumber)) AND ((@IsNull_AssociationNubmers = 1 AND [AssociationNubmers] IS NULL) OR ([AssociationNubmers] = @Original_AssociationNubmers)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_AccountPayable = 1 AND [AccountPayable] IS NULL) OR ([AccountPayable] = @Original_AccountPayable)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, PayableDate, ModeOfPayment, CurrentAmount, Summary, PayableNumber, AssociationNubmers, Remark, AccountPayable, OptimisticLockField, GCRecord FROM AccountPayableItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@PayableDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="PayableDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CurrentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PayableNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PayableNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@AccountPayable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PayableDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PayableDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_PayableDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="PayableDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CurrentAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CurrentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Summary" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PayableNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PayableNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PayableNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PayableNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AssociationNubmers" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountPayable" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_AccountPayable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="PayableDate" DataSetColumn="PayableDate" />
              <Mapping SourceColumn="ModeOfPayment" DataSetColumn="ModeOfPayment" />
              <Mapping SourceColumn="CurrentAmount" DataSetColumn="CurrentAmount" />
              <Mapping SourceColumn="Summary" DataSetColumn="Summary" />
              <Mapping SourceColumn="PayableNumber" DataSetColumn="PayableNumber" />
              <Mapping SourceColumn="AssociationNubmers" DataSetColumn="AssociationNubmers" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="AccountPayable" DataSetColumn="AccountPayable" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AccountReceivableTableAdapter" GeneratorDataComponentClassName="AccountReceivableTableAdapter" Name="AccountReceivable" UserDataComponentName="AccountReceivableTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.AccountReceivable" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[AccountReceivable] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_ARCCode = 1 AND [ARCCode] IS NULL) OR ([ARCCode] = @Original_ARCCode)) AND ((@IsNull_Customer = 1 AND [Customer] IS NULL) OR ([Customer] = @Original_Customer)) AND ((@IsNull_CustomerTelphone = 1 AND [CustomerTelphone] IS NULL) OR ([CustomerTelphone] = @Original_CustomerTelphone)) AND ((@IsNull_GargoTeminal = 1 AND [GargoTeminal] IS NULL) OR ([GargoTeminal] = @Original_GargoTeminal)) AND ((@IsNull_GargoTeminalTelephone = 1 AND [GargoTeminalTelephone] IS NULL) OR ([GargoTeminalTelephone] = @Original_GargoTeminalTelephone)) AND ((@IsNull_ReceivableAmount = 1 AND [ReceivableAmount] IS NULL) OR ([ReceivableAmount] = @Original_ReceivableAmount)) AND ((@IsNull_ReceivabledAmount = 1 AND [ReceivabledAmount] IS NULL) OR ([ReceivabledAmount] = @Original_ReceivabledAmount)) AND ((@IsNull_DebtAmount = 1 AND [DebtAmount] IS NULL) OR ([DebtAmount] = @Original_DebtAmount)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ARCCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ARCCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ARCCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ARCCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Customer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerTelphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerTelphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CustomerTelphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerTelphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminalTelephone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_GargoTeminalTelephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivableAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivableAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivableAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivableAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivabledAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivabledAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivabledAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivabledAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DebtAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[AccountReceivable] ([Oid], [ARCCode], [Customer], [CustomerTelphone], [GargoTeminal], [GargoTeminalTelephone], [ReceivableAmount], [ReceivabledAmount], [DebtAmount], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @ARCCode, @Customer, @CustomerTelphone, @GargoTeminal, @GargoTeminalTelephone, @ReceivableAmount, @ReceivabledAmount, @DebtAmount, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, ARCCode, Customer, CustomerTelphone, GargoTeminal, GargoTeminalTelephone, ReceivableAmount, ReceivabledAmount, DebtAmount, Remark, OptimisticLockField, GCRecord FROM AccountReceivable WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ARCCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ARCCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CustomerTelphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerTelphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GargoTeminalTelephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivableAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivableAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivabledAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivabledAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, ARCCode, Customer, CustomerTelphone, GargoTeminal, GargoTeminalTelephone, ReceivableAmount, ReceivabledAmount, DebtAmount, Remark, OptimisticLockField, GCRecord FROM dbo.AccountReceivable</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[AccountReceivable] SET [Oid] = @Oid, [ARCCode] = @ARCCode, [Customer] = @Customer, [CustomerTelphone] = @CustomerTelphone, [GargoTeminal] = @GargoTeminal, [GargoTeminalTelephone] = @GargoTeminalTelephone, [ReceivableAmount] = @ReceivableAmount, [ReceivabledAmount] = @ReceivabledAmount, [DebtAmount] = @DebtAmount, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_ARCCode = 1 AND [ARCCode] IS NULL) OR ([ARCCode] = @Original_ARCCode)) AND ((@IsNull_Customer = 1 AND [Customer] IS NULL) OR ([Customer] = @Original_Customer)) AND ((@IsNull_CustomerTelphone = 1 AND [CustomerTelphone] IS NULL) OR ([CustomerTelphone] = @Original_CustomerTelphone)) AND ((@IsNull_GargoTeminal = 1 AND [GargoTeminal] IS NULL) OR ([GargoTeminal] = @Original_GargoTeminal)) AND ((@IsNull_GargoTeminalTelephone = 1 AND [GargoTeminalTelephone] IS NULL) OR ([GargoTeminalTelephone] = @Original_GargoTeminalTelephone)) AND ((@IsNull_ReceivableAmount = 1 AND [ReceivableAmount] IS NULL) OR ([ReceivableAmount] = @Original_ReceivableAmount)) AND ((@IsNull_ReceivabledAmount = 1 AND [ReceivabledAmount] IS NULL) OR ([ReceivabledAmount] = @Original_ReceivabledAmount)) AND ((@IsNull_DebtAmount = 1 AND [DebtAmount] IS NULL) OR ([DebtAmount] = @Original_DebtAmount)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, ARCCode, Customer, CustomerTelphone, GargoTeminal, GargoTeminalTelephone, ReceivableAmount, ReceivabledAmount, DebtAmount, Remark, OptimisticLockField, GCRecord FROM AccountReceivable WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ARCCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ARCCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CustomerTelphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerTelphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GargoTeminalTelephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivableAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivableAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivabledAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivabledAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ARCCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ARCCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ARCCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ARCCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Customer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerTelphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerTelphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CustomerTelphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerTelphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminalTelephone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_GargoTeminalTelephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoTeminalTelephone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivableAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivableAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivableAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivableAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivabledAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivabledAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivabledAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivabledAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DebtAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="ARCCode" DataSetColumn="ARCCode" />
              <Mapping SourceColumn="Customer" DataSetColumn="Customer" />
              <Mapping SourceColumn="CustomerTelphone" DataSetColumn="CustomerTelphone" />
              <Mapping SourceColumn="GargoTeminal" DataSetColumn="GargoTeminal" />
              <Mapping SourceColumn="GargoTeminalTelephone" DataSetColumn="GargoTeminalTelephone" />
              <Mapping SourceColumn="ReceivableAmount" DataSetColumn="ReceivableAmount" />
              <Mapping SourceColumn="ReceivabledAmount" DataSetColumn="ReceivabledAmount" />
              <Mapping SourceColumn="DebtAmount" DataSetColumn="DebtAmount" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AccountReceivableItemsTableAdapter" GeneratorDataComponentClassName="AccountReceivableItemsTableAdapter" Name="AccountReceivableItems" UserDataComponentName="AccountReceivableItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.AccountReceivableItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[AccountReceivableItems] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_ReceivableDate = 1 AND [ReceivableDate] IS NULL) OR ([ReceivableDate] = @Original_ReceivableDate)) AND ((@IsNull_ModeOfPayment = 1 AND [ModeOfPayment] IS NULL) OR ([ModeOfPayment] = @Original_ModeOfPayment)) AND ((@IsNull_CurrentAmount = 1 AND [CurrentAmount] IS NULL) OR ([CurrentAmount] = @Original_CurrentAmount)) AND ((@IsNull_Summary = 1 AND [Summary] IS NULL) OR ([Summary] = @Original_Summary)) AND ((@IsNull_ReceivableNumber = 1 AND [ReceivableNumber] IS NULL) OR ([ReceivableNumber] = @Original_ReceivableNumber)) AND ((@IsNull_AssociationNubmers = 1 AND [AssociationNubmers] IS NULL) OR ([AssociationNubmers] = @Original_AssociationNubmers)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_AccountReceivable = 1 AND [AccountReceivable] IS NULL) OR ([AccountReceivable] = @Original_AccountReceivable)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivableDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivableDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ReceivableDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReceivableDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CurrentAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CurrentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Summary" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivableNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivableNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ReceivableNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReceivableNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AssociationNubmers" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountReceivable" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_AccountReceivable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[AccountReceivableItems] ([Oid], [ReceivableDate], [ModeOfPayment], [CurrentAmount], [Summary], [ReceivableNumber], [AssociationNubmers], [Remark], [AccountReceivable], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @ReceivableDate, @ModeOfPayment, @CurrentAmount, @Summary, @ReceivableNumber, @AssociationNubmers, @Remark, @AccountReceivable, @OptimisticLockField, @GCRecord);
SELECT Oid, ReceivableDate, ModeOfPayment, CurrentAmount, Summary, ReceivableNumber, AssociationNubmers, Remark, AccountReceivable, OptimisticLockField, GCRecord FROM AccountReceivableItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ReceivableDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReceivableDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CurrentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReceivableNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReceivableNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@AccountReceivable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, ReceivableDate, ModeOfPayment, CurrentAmount, Summary, ReceivableNumber, AssociationNubmers, Remark, AccountReceivable, OptimisticLockField, GCRecord FROM dbo.AccountReceivableItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[AccountReceivableItems] SET [Oid] = @Oid, [ReceivableDate] = @ReceivableDate, [ModeOfPayment] = @ModeOfPayment, [CurrentAmount] = @CurrentAmount, [Summary] = @Summary, [ReceivableNumber] = @ReceivableNumber, [AssociationNubmers] = @AssociationNubmers, [Remark] = @Remark, [AccountReceivable] = @AccountReceivable, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_ReceivableDate = 1 AND [ReceivableDate] IS NULL) OR ([ReceivableDate] = @Original_ReceivableDate)) AND ((@IsNull_ModeOfPayment = 1 AND [ModeOfPayment] IS NULL) OR ([ModeOfPayment] = @Original_ModeOfPayment)) AND ((@IsNull_CurrentAmount = 1 AND [CurrentAmount] IS NULL) OR ([CurrentAmount] = @Original_CurrentAmount)) AND ((@IsNull_Summary = 1 AND [Summary] IS NULL) OR ([Summary] = @Original_Summary)) AND ((@IsNull_ReceivableNumber = 1 AND [ReceivableNumber] IS NULL) OR ([ReceivableNumber] = @Original_ReceivableNumber)) AND ((@IsNull_AssociationNubmers = 1 AND [AssociationNubmers] IS NULL) OR ([AssociationNubmers] = @Original_AssociationNubmers)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_AccountReceivable = 1 AND [AccountReceivable] IS NULL) OR ([AccountReceivable] = @Original_AccountReceivable)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, ReceivableDate, ModeOfPayment, CurrentAmount, Summary, ReceivableNumber, AssociationNubmers, Remark, AccountReceivable, OptimisticLockField, GCRecord FROM AccountReceivableItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ReceivableDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReceivableDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CurrentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReceivableNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReceivableNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@AccountReceivable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivableDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivableDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ReceivableDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReceivableDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CurrentAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CurrentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Summary" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivableNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivableNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ReceivableNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReceivableNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AssociationNubmers" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountReceivable" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_AccountReceivable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="ReceivableDate" DataSetColumn="ReceivableDate" />
              <Mapping SourceColumn="ModeOfPayment" DataSetColumn="ModeOfPayment" />
              <Mapping SourceColumn="CurrentAmount" DataSetColumn="CurrentAmount" />
              <Mapping SourceColumn="Summary" DataSetColumn="Summary" />
              <Mapping SourceColumn="ReceivableNumber" DataSetColumn="ReceivableNumber" />
              <Mapping SourceColumn="AssociationNubmers" DataSetColumn="AssociationNubmers" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="AccountReceivable" DataSetColumn="AccountReceivable" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CashAccountTableAdapter" GeneratorDataComponentClassName="CashAccountTableAdapter" Name="CashAccount" UserDataComponentName="CashAccountTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.CashAccount" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[CashAccount] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_CATCode = 1 AND [CATCode] IS NULL) OR ([CATCode] = @Original_CATCode)) AND ((@IsNull_Date = 1 AND [Date] IS NULL) OR ([Date] = @Original_Date)) AND ((@IsNull_CustomOrSupplier = 1 AND [CustomOrSupplier] IS NULL) OR ([CustomOrSupplier] = @Original_CustomOrSupplier)) AND ((@IsNull_Summary = 1 AND [Summary] IS NULL) OR ([Summary] = @Original_Summary)) AND ((@IsNull_IncomeAmount = 1 AND [IncomeAmount] IS NULL) OR ([IncomeAmount] = @Original_IncomeAmount)) AND ((@IsNull_PayAmount = 1 AND [PayAmount] IS NULL) OR ([PayAmount] = @Original_PayAmount)) AND ((@IsNull_AssociationNubmers = 1 AND [AssociationNubmers] IS NULL) OR ([AssociationNubmers] = @Original_AssociationNubmers)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CATCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CATCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CATCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CATCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Date" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Date" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomOrSupplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomOrSupplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CustomOrSupplier" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomOrSupplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Summary" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IncomeAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IncomeAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_IncomeAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="IncomeAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PayAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PayAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PayAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AssociationNubmers" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[CashAccount] ([Oid], [CATCode], [Date], [CustomOrSupplier], [Summary], [IncomeAmount], [PayAmount], [AssociationNubmers], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @CATCode, @Date, @CustomOrSupplier, @Summary, @IncomeAmount, @PayAmount, @AssociationNubmers, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, CATCode, Date, CustomOrSupplier, Summary, IncomeAmount, PayAmount, AssociationNubmers, Remark, OptimisticLockField, GCRecord FROM CashAccount WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CATCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CATCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Date" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CustomOrSupplier" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomOrSupplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@IncomeAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="IncomeAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PayAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, CATCode, Date, CustomOrSupplier, Summary, IncomeAmount, PayAmount, AssociationNubmers, Remark, OptimisticLockField, GCRecord FROM dbo.CashAccount</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[CashAccount] SET [Oid] = @Oid, [CATCode] = @CATCode, [Date] = @Date, [CustomOrSupplier] = @CustomOrSupplier, [Summary] = @Summary, [IncomeAmount] = @IncomeAmount, [PayAmount] = @PayAmount, [AssociationNubmers] = @AssociationNubmers, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_CATCode = 1 AND [CATCode] IS NULL) OR ([CATCode] = @Original_CATCode)) AND ((@IsNull_Date = 1 AND [Date] IS NULL) OR ([Date] = @Original_Date)) AND ((@IsNull_CustomOrSupplier = 1 AND [CustomOrSupplier] IS NULL) OR ([CustomOrSupplier] = @Original_CustomOrSupplier)) AND ((@IsNull_Summary = 1 AND [Summary] IS NULL) OR ([Summary] = @Original_Summary)) AND ((@IsNull_IncomeAmount = 1 AND [IncomeAmount] IS NULL) OR ([IncomeAmount] = @Original_IncomeAmount)) AND ((@IsNull_PayAmount = 1 AND [PayAmount] IS NULL) OR ([PayAmount] = @Original_PayAmount)) AND ((@IsNull_AssociationNubmers = 1 AND [AssociationNubmers] IS NULL) OR ([AssociationNubmers] = @Original_AssociationNubmers)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, CATCode, Date, CustomOrSupplier, Summary, IncomeAmount, PayAmount, AssociationNubmers, Remark, OptimisticLockField, GCRecord FROM CashAccount WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CATCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CATCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Date" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CustomOrSupplier" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomOrSupplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@IncomeAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="IncomeAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PayAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CATCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CATCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CATCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CATCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Date" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Date" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomOrSupplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomOrSupplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CustomOrSupplier" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomOrSupplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Summary" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IncomeAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IncomeAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_IncomeAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="IncomeAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PayAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PayAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PayAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PayAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AssociationNubmers" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AssociationNubmers" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AssociationNubmers" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="CATCode" DataSetColumn="CATCode" />
              <Mapping SourceColumn="Date" DataSetColumn="Date" />
              <Mapping SourceColumn="CustomOrSupplier" DataSetColumn="CustomOrSupplier" />
              <Mapping SourceColumn="Summary" DataSetColumn="Summary" />
              <Mapping SourceColumn="IncomeAmount" DataSetColumn="IncomeAmount" />
              <Mapping SourceColumn="PayAmount" DataSetColumn="PayAmount" />
              <Mapping SourceColumn="AssociationNubmers" DataSetColumn="AssociationNubmers" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ContactTableAdapter" GeneratorDataComponentClassName="ContactTableAdapter" Name="Contact" UserDataComponentName="ContactTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.Contact" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Contact] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Sex = 1 AND [Sex] IS NULL) OR ([Sex] = @Original_Sex)) AND ((@IsNull_Mobile = 1 AND [Mobile] IS NULL) OR ([Mobile] = @Original_Mobile)) AND ((@IsNull_Telphone = 1 AND [Telphone] IS NULL) OR ([Telphone] = @Original_Telphone)) AND ((@IsNull_Fax = 1 AND [Fax] IS NULL) OR ([Fax] = @Original_Fax)) AND ((@IsNull_EMail = 1 AND [EMail] IS NULL) OR ([EMail] = @Original_EMail)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActive = 1 AND [IsActive] IS NULL) OR ([IsActive] = @Original_IsActive)) AND ((@IsNull_Supplier = 1 AND [Supplier] IS NULL) OR ([Supplier] = @Original_Supplier)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Mobile" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Mobile" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Fax" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EMail" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EMail" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_EMail" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EMail" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Contact] ([Oid], [Name], [Sex], [Mobile], [Telphone], [Fax], [EMail], [Remarks], [IsActive], [Supplier], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Name, @Sex, @Mobile, @Telphone, @Fax, @EMail, @Remarks, @IsActive, @Supplier, @OptimisticLockField, @GCRecord);
SELECT Oid, Name, Sex, Mobile, Telphone, Fax, EMail, Remarks, IsActive, Supplier, OptimisticLockField, GCRecord FROM Contact WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Mobile" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@EMail" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EMail" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Name, Sex, Mobile, Telphone, Fax, EMail, Remarks, IsActive, Supplier, OptimisticLockField, GCRecord FROM dbo.Contact</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Contact] SET [Oid] = @Oid, [Name] = @Name, [Sex] = @Sex, [Mobile] = @Mobile, [Telphone] = @Telphone, [Fax] = @Fax, [EMail] = @EMail, [Remarks] = @Remarks, [IsActive] = @IsActive, [Supplier] = @Supplier, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Sex = 1 AND [Sex] IS NULL) OR ([Sex] = @Original_Sex)) AND ((@IsNull_Mobile = 1 AND [Mobile] IS NULL) OR ([Mobile] = @Original_Mobile)) AND ((@IsNull_Telphone = 1 AND [Telphone] IS NULL) OR ([Telphone] = @Original_Telphone)) AND ((@IsNull_Fax = 1 AND [Fax] IS NULL) OR ([Fax] = @Original_Fax)) AND ((@IsNull_EMail = 1 AND [EMail] IS NULL) OR ([EMail] = @Original_EMail)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActive = 1 AND [IsActive] IS NULL) OR ([IsActive] = @Original_IsActive)) AND ((@IsNull_Supplier = 1 AND [Supplier] IS NULL) OR ([Supplier] = @Original_Supplier)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Name, Sex, Mobile, Telphone, Fax, EMail, Remarks, IsActive, Supplier, OptimisticLockField, GCRecord FROM Contact WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Mobile" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@EMail" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EMail" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Mobile" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Mobile" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Fax" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EMail" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EMail" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_EMail" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EMail" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Name" DataSetColumn="Name" />
              <Mapping SourceColumn="Sex" DataSetColumn="Sex" />
              <Mapping SourceColumn="Mobile" DataSetColumn="Mobile" />
              <Mapping SourceColumn="Telphone" DataSetColumn="Telphone" />
              <Mapping SourceColumn="Fax" DataSetColumn="Fax" />
              <Mapping SourceColumn="EMail" DataSetColumn="EMail" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="IsActive" DataSetColumn="IsActive" />
              <Mapping SourceColumn="Supplier" DataSetColumn="Supplier" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CustomerTableAdapter" GeneratorDataComponentClassName="CustomerTableAdapter" Name="Customer" UserDataComponentName="CustomerTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.Customer" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Customer] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_CustomerCode = 1 AND [CustomerCode] IS NULL) OR ([CustomerCode] = @Original_CustomerCode)) AND ((@IsNull_ShortName = 1 AND [ShortName] IS NULL) OR ([ShortName] = @Original_ShortName)) AND ((@IsNull_LongName = 1 AND [LongName] IS NULL) OR ([LongName] = @Original_LongName)) AND ((@IsNull_CustomerType = 1 AND [CustomerType] IS NULL) OR ([CustomerType] = @Original_CustomerType)) AND ((@IsNull_Telphone = 1 AND [Telphone] IS NULL) OR ([Telphone] = @Original_Telphone)) AND ((@IsNull_Fax = 1 AND [Fax] IS NULL) OR ([Fax] = @Original_Fax)) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ((@IsNull_Zip = 1 AND [Zip] IS NULL) OR ([Zip] = @Original_Zip)) AND ((@IsNull_WebSite = 1 AND [WebSite] IS NULL) OR ([WebSite] = @Original_WebSite)) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MaxDebt = 1 AND [MaxDebt] IS NULL) OR ([MaxDebt] = @Original_MaxDebt)) AND ((@IsNull_AccountName = 1 AND [AccountName] IS NULL) OR ([AccountName] = @Original_AccountName)) AND ((@IsNull_AccountBank = 1 AND [AccountBank] IS NULL) OR ([AccountBank] = @Original_AccountBank)) AND ((@IsNull_AccountNumber = 1 AND [AccountNumber] IS NULL) OR ([AccountNumber] = @Original_AccountNumber)) AND ((@IsNull_DefaultGargoTeminal = 1 AND [DefaultGargoTeminal] IS NULL) OR ([DefaultGargoTeminal] = @Original_DefaultGargoTeminal)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActiva = 1 AND [IsActiva] IS NULL) OR ([IsActiva] = @Original_IsActiva)) AND ((@IsNull_CustomerReturn = 1 AND [CustomerReturn] IS NULL) OR ([CustomerReturn] = @Original_CustomerReturn)) AND ((@IsNull_AccountReceivable = 1 AND [AccountReceivable] IS NULL) OR ([AccountReceivable] = @Original_AccountReceivable)) AND ((@IsNull_SaleOrder = 1 AND [SaleOrder] IS NULL) OR ([SaleOrder] = @Original_SaleOrder)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CustomerCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShortName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ShortName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LongName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LongName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerType" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_CustomerType" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Fax" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Address" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Zip" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Zip" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_WebSite" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_WebSite" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaxDebt" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxDebt" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_MaxDebt" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="MaxDebt" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AccountName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountBank" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AccountBank" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AccountNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DefaultGargoTeminal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DefaultGargoTeminal" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_DefaultGargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="DefaultGargoTeminal" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActiva" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActiva" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerReturn" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_CustomerReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountReceivable" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_AccountReceivable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SaleOrder" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Customer] ([Oid], [CustomerCode], [ShortName], [LongName], [CustomerType], [Telphone], [Fax], [Address], [Zip], [WebSite], [Discount], [MaxDebt], [AccountName], [AccountBank], [AccountNumber], [DefaultGargoTeminal], [Remarks], [IsActiva], [CustomerReturn], [AccountReceivable], [SaleOrder], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @CustomerCode, @ShortName, @LongName, @CustomerType, @Telphone, @Fax, @Address, @Zip, @WebSite, @Discount, @MaxDebt, @AccountName, @AccountBank, @AccountNumber, @DefaultGargoTeminal, @Remarks, @IsActiva, @CustomerReturn, @AccountReceivable, @SaleOrder, @OptimisticLockField, @GCRecord);
SELECT Oid, CustomerCode, ShortName, LongName, CustomerType, Telphone, Fax, Address, Zip, WebSite, Discount, MaxDebt, AccountName, AccountBank, AccountNumber, DefaultGargoTeminal, Remarks, IsActiva, CustomerReturn, AccountReceivable, SaleOrder, OptimisticLockField, GCRecord FROM Customer WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CustomerCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ShortName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LongName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@CustomerType" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Zip" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@WebSite" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@MaxDebt" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="MaxDebt" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AccountName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AccountBank" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AccountNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@DefaultGargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="DefaultGargoTeminal" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActiva" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@CustomerReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@AccountReceivable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, CustomerCode, ShortName, LongName, CustomerType, Telphone, Fax, Address, Zip, WebSite, Discount, MaxDebt, AccountName, AccountBank, AccountNumber, DefaultGargoTeminal, Remarks, IsActiva, CustomerReturn, AccountReceivable, SaleOrder, OptimisticLockField, GCRecord FROM dbo.Customer</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Customer] SET [Oid] = @Oid, [CustomerCode] = @CustomerCode, [ShortName] = @ShortName, [LongName] = @LongName, [CustomerType] = @CustomerType, [Telphone] = @Telphone, [Fax] = @Fax, [Address] = @Address, [Zip] = @Zip, [WebSite] = @WebSite, [Discount] = @Discount, [MaxDebt] = @MaxDebt, [AccountName] = @AccountName, [AccountBank] = @AccountBank, [AccountNumber] = @AccountNumber, [DefaultGargoTeminal] = @DefaultGargoTeminal, [Remarks] = @Remarks, [IsActiva] = @IsActiva, [CustomerReturn] = @CustomerReturn, [AccountReceivable] = @AccountReceivable, [SaleOrder] = @SaleOrder, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_CustomerCode = 1 AND [CustomerCode] IS NULL) OR ([CustomerCode] = @Original_CustomerCode)) AND ((@IsNull_ShortName = 1 AND [ShortName] IS NULL) OR ([ShortName] = @Original_ShortName)) AND ((@IsNull_LongName = 1 AND [LongName] IS NULL) OR ([LongName] = @Original_LongName)) AND ((@IsNull_CustomerType = 1 AND [CustomerType] IS NULL) OR ([CustomerType] = @Original_CustomerType)) AND ((@IsNull_Telphone = 1 AND [Telphone] IS NULL) OR ([Telphone] = @Original_Telphone)) AND ((@IsNull_Fax = 1 AND [Fax] IS NULL) OR ([Fax] = @Original_Fax)) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ((@IsNull_Zip = 1 AND [Zip] IS NULL) OR ([Zip] = @Original_Zip)) AND ((@IsNull_WebSite = 1 AND [WebSite] IS NULL) OR ([WebSite] = @Original_WebSite)) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_MaxDebt = 1 AND [MaxDebt] IS NULL) OR ([MaxDebt] = @Original_MaxDebt)) AND ((@IsNull_AccountName = 1 AND [AccountName] IS NULL) OR ([AccountName] = @Original_AccountName)) AND ((@IsNull_AccountBank = 1 AND [AccountBank] IS NULL) OR ([AccountBank] = @Original_AccountBank)) AND ((@IsNull_AccountNumber = 1 AND [AccountNumber] IS NULL) OR ([AccountNumber] = @Original_AccountNumber)) AND ((@IsNull_DefaultGargoTeminal = 1 AND [DefaultGargoTeminal] IS NULL) OR ([DefaultGargoTeminal] = @Original_DefaultGargoTeminal)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActiva = 1 AND [IsActiva] IS NULL) OR ([IsActiva] = @Original_IsActiva)) AND ((@IsNull_CustomerReturn = 1 AND [CustomerReturn] IS NULL) OR ([CustomerReturn] = @Original_CustomerReturn)) AND ((@IsNull_AccountReceivable = 1 AND [AccountReceivable] IS NULL) OR ([AccountReceivable] = @Original_AccountReceivable)) AND ((@IsNull_SaleOrder = 1 AND [SaleOrder] IS NULL) OR ([SaleOrder] = @Original_SaleOrder)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, CustomerCode, ShortName, LongName, CustomerType, Telphone, Fax, Address, Zip, WebSite, Discount, MaxDebt, AccountName, AccountBank, AccountNumber, DefaultGargoTeminal, Remarks, IsActiva, CustomerReturn, AccountReceivable, SaleOrder, OptimisticLockField, GCRecord FROM Customer WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CustomerCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ShortName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LongName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@CustomerType" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Zip" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@WebSite" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@MaxDebt" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="MaxDebt" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AccountName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AccountBank" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AccountNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@DefaultGargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="DefaultGargoTeminal" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActiva" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@CustomerReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@AccountReceivable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CustomerCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CustomerCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShortName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ShortName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LongName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LongName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerType" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_CustomerType" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Fax" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Address" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Zip" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Zip" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_WebSite" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_WebSite" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaxDebt" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxDebt" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_MaxDebt" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="MaxDebt" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AccountName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountBank" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AccountBank" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AccountNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DefaultGargoTeminal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DefaultGargoTeminal" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_DefaultGargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="DefaultGargoTeminal" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActiva" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActiva" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerReturn" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_CustomerReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountReceivable" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_AccountReceivable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountReceivable" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SaleOrder" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="CustomerCode" DataSetColumn="CustomerCode" />
              <Mapping SourceColumn="ShortName" DataSetColumn="ShortName" />
              <Mapping SourceColumn="LongName" DataSetColumn="LongName" />
              <Mapping SourceColumn="CustomerType" DataSetColumn="CustomerType" />
              <Mapping SourceColumn="Telphone" DataSetColumn="Telphone" />
              <Mapping SourceColumn="Fax" DataSetColumn="Fax" />
              <Mapping SourceColumn="Address" DataSetColumn="Address" />
              <Mapping SourceColumn="Zip" DataSetColumn="Zip" />
              <Mapping SourceColumn="WebSite" DataSetColumn="WebSite" />
              <Mapping SourceColumn="Discount" DataSetColumn="Discount" />
              <Mapping SourceColumn="MaxDebt" DataSetColumn="MaxDebt" />
              <Mapping SourceColumn="AccountName" DataSetColumn="AccountName" />
              <Mapping SourceColumn="AccountBank" DataSetColumn="AccountBank" />
              <Mapping SourceColumn="AccountNumber" DataSetColumn="AccountNumber" />
              <Mapping SourceColumn="DefaultGargoTeminal" DataSetColumn="DefaultGargoTeminal" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="IsActiva" DataSetColumn="IsActiva" />
              <Mapping SourceColumn="CustomerReturn" DataSetColumn="CustomerReturn" />
              <Mapping SourceColumn="AccountReceivable" DataSetColumn="AccountReceivable" />
              <Mapping SourceColumn="SaleOrder" DataSetColumn="SaleOrder" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CustomerCategoryTableAdapter" GeneratorDataComponentClassName="CustomerCategoryTableAdapter" Name="CustomerCategory" UserDataComponentName="CustomerCategoryTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.CustomerCategory" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[CustomerCategory] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_PriceType = 1 AND [PriceType] IS NULL) OR ([PriceType] = @Original_PriceType)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PriceType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PriceType" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PriceType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PriceType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[CustomerCategory] ([Oid], [Name], [PriceType], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Name, @PriceType, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, Name, PriceType, Remark, OptimisticLockField, GCRecord FROM CustomerCategory WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PriceType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PriceType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Name, PriceType, Remark, OptimisticLockField, GCRecord FROM dbo.CustomerCategory</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[CustomerCategory] SET [Oid] = @Oid, [Name] = @Name, [PriceType] = @PriceType, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_PriceType = 1 AND [PriceType] IS NULL) OR ([PriceType] = @Original_PriceType)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Name, PriceType, Remark, OptimisticLockField, GCRecord FROM CustomerCategory WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PriceType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PriceType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PriceType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PriceType" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PriceType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PriceType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Name" DataSetColumn="Name" />
              <Mapping SourceColumn="PriceType" DataSetColumn="PriceType" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CustomerReturnTableAdapter" GeneratorDataComponentClassName="CustomerReturnTableAdapter" Name="CustomerReturn" UserDataComponentName="CustomerReturnTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.CustomerReturn" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[CustomerReturn] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_CRDCode = 1 AND [CRDCode] IS NULL) OR ([CRDCode] = @Original_CRDCode)) AND ((@IsNull_Customer = 1 AND [Customer] IS NULL) OR ([Customer] = @Original_Customer)) AND ((@IsNull_SONumber = 1 AND [SONumber] IS NULL) OR ([SONumber] = @Original_SONumber)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_ReturnsDate = 1 AND [ReturnsDate] IS NULL) OR ([ReturnsDate] = @Original_ReturnsDate)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CRDCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CRDCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CRDCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CRDCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Customer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SONumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SONumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SONumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SONumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnsDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ReturnsDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[CustomerReturn] ([Oid], [CRDCode], [Customer], [SONumber], [Remark], [ReturnsDate], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @CRDCode, @Customer, @SONumber, @Remark, @ReturnsDate, @OptimisticLockField, @GCRecord);
SELECT Oid, CRDCode, Customer, SONumber, Remark, ReturnsDate, OptimisticLockField, GCRecord FROM CustomerReturn WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CRDCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CRDCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SONumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SONumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ReturnsDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, CRDCode, Customer, SONumber, Remark, ReturnsDate, OptimisticLockField, GCRecord FROM dbo.CustomerReturn</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[CustomerReturn] SET [Oid] = @Oid, [CRDCode] = @CRDCode, [Customer] = @Customer, [SONumber] = @SONumber, [Remark] = @Remark, [ReturnsDate] = @ReturnsDate, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_CRDCode = 1 AND [CRDCode] IS NULL) OR ([CRDCode] = @Original_CRDCode)) AND ((@IsNull_Customer = 1 AND [Customer] IS NULL) OR ([Customer] = @Original_Customer)) AND ((@IsNull_SONumber = 1 AND [SONumber] IS NULL) OR ([SONumber] = @Original_SONumber)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_ReturnsDate = 1 AND [ReturnsDate] IS NULL) OR ([ReturnsDate] = @Original_ReturnsDate)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, CRDCode, Customer, SONumber, Remark, ReturnsDate, OptimisticLockField, GCRecord FROM CustomerReturn WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CRDCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CRDCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SONumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SONumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ReturnsDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CRDCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CRDCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CRDCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CRDCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Customer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SONumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SONumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SONumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SONumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnsDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ReturnsDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="CRDCode" DataSetColumn="CRDCode" />
              <Mapping SourceColumn="Customer" DataSetColumn="Customer" />
              <Mapping SourceColumn="SONumber" DataSetColumn="SONumber" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="ReturnsDate" DataSetColumn="ReturnsDate" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CustomerReturnItemsTableAdapter" GeneratorDataComponentClassName="CustomerReturnItemsTableAdapter" Name="CustomerReturnItems" UserDataComponentName="CustomerReturnItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.CustomerReturnItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[CustomerReturnItems] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_AvailableQuantity = 1 AND [AvailableQuantity] IS NULL) OR ([AvailableQuantity] = @Original_AvailableQuantity)) AND ((@IsNull_WasteQuantify = 1 AND [WasteQuantify] IS NULL) OR ([WasteQuantify] = @Original_WasteQuantify)) AND ((@IsNull_ReturnPrice = 1 AND [ReturnPrice] IS NULL) OR ([ReturnPrice] = @Original_ReturnPrice)) AND ((@IsNull_ReturnsCause = 1 AND [ReturnsCause] IS NULL) OR ([ReturnsCause] = @Original_ReturnsCause)) AND ((@IsNull_CustomerReturn = 1 AND [CustomerReturn] IS NULL) OR ([CustomerReturn] = @Original_CustomerReturn)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_WasteQuantify" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_WasteQuantify" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReturnPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnsCause" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ReturnsCause" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerReturn" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_CustomerReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[CustomerReturnItems] ([Oid], [Product], [AvailableQuantity], [WasteQuantify], [ReturnPrice], [ReturnsCause], [CustomerReturn], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Product, @AvailableQuantity, @WasteQuantify, @ReturnPrice, @ReturnsCause, @CustomerReturn, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, Product, AvailableQuantity, WasteQuantify, ReturnPrice, ReturnsCause, CustomerReturn, Remark, OptimisticLockField, GCRecord FROM CustomerReturnItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@WasteQuantify" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReturnPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReturnsCause" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@CustomerReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Product, AvailableQuantity, WasteQuantify, ReturnPrice, ReturnsCause, CustomerReturn, Remark, OptimisticLockField, GCRecord FROM dbo.CustomerReturnItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[CustomerReturnItems] SET [Oid] = @Oid, [Product] = @Product, [AvailableQuantity] = @AvailableQuantity, [WasteQuantify] = @WasteQuantify, [ReturnPrice] = @ReturnPrice, [ReturnsCause] = @ReturnsCause, [CustomerReturn] = @CustomerReturn, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_AvailableQuantity = 1 AND [AvailableQuantity] IS NULL) OR ([AvailableQuantity] = @Original_AvailableQuantity)) AND ((@IsNull_WasteQuantify = 1 AND [WasteQuantify] IS NULL) OR ([WasteQuantify] = @Original_WasteQuantify)) AND ((@IsNull_ReturnPrice = 1 AND [ReturnPrice] IS NULL) OR ([ReturnPrice] = @Original_ReturnPrice)) AND ((@IsNull_ReturnsCause = 1 AND [ReturnsCause] IS NULL) OR ([ReturnsCause] = @Original_ReturnsCause)) AND ((@IsNull_CustomerReturn = 1 AND [CustomerReturn] IS NULL) OR ([CustomerReturn] = @Original_CustomerReturn)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Product, AvailableQuantity, WasteQuantify, ReturnPrice, ReturnsCause, CustomerReturn, Remark, OptimisticLockField, GCRecord FROM CustomerReturnItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@WasteQuantify" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReturnPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReturnsCause" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@CustomerReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_WasteQuantify" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_WasteQuantify" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReturnPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnsCause" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ReturnsCause" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerReturn" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_CustomerReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturn" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Product" DataSetColumn="Product" />
              <Mapping SourceColumn="AvailableQuantity" DataSetColumn="AvailableQuantity" />
              <Mapping SourceColumn="WasteQuantify" DataSetColumn="WasteQuantify" />
              <Mapping SourceColumn="ReturnPrice" DataSetColumn="ReturnPrice" />
              <Mapping SourceColumn="ReturnsCause" DataSetColumn="ReturnsCause" />
              <Mapping SourceColumn="CustomerReturn" DataSetColumn="CustomerReturn" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="EmployeeTableAdapter" GeneratorDataComponentClassName="EmployeeTableAdapter" Name="Employee" UserDataComponentName="EmployeeTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.Employee" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Employee] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Sex = 1 AND [Sex] IS NULL) OR ([Sex] = @Original_Sex)) AND ((@IsNull_Position = 1 AND [Position] IS NULL) OR ([Position] = @Original_Position)) AND ((@IsNull_DatesEmployed = 1 AND [DatesEmployed] IS NULL) OR ([DatesEmployed] = @Original_DatesEmployed)) AND ((@IsNull_IDCard = 1 AND [IDCard] IS NULL) OR ([IDCard] = @Original_IDCard)) AND ((@IsNull_Mobile = 1 AND [Mobile] IS NULL) OR ([Mobile] = @Original_Mobile)) AND ((@IsNull_Telephone = 1 AND [Telephone] IS NULL) OR ([Telephone] = @Original_Telephone)) AND ((@IsNull_EMAIL = 1 AND [EMAIL] IS NULL) OR ([EMAIL] = @Original_EMAIL)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActive = 1 AND [IsActive] IS NULL) OR ([IsActive] = @Original_IsActive)) AND ((@IsNull_ShopStore = 1 AND [ShopStore] IS NULL) OR ([ShopStore] = @Original_ShopStore)) AND ((@IsNull_SaleOrder = 1 AND [SaleOrder] IS NULL) OR ([SaleOrder] = @Original_SaleOrder)) AND ((@IsNull_InventoryTransfer = 1 AND [InventoryTransfer] IS NULL) OR ([InventoryTransfer] = @Original_InventoryTransfer)) AND ((@IsNull_InventoryAdjustment = 1 AND [InventoryAdjustment] IS NULL) OR ([InventoryAdjustment] = @Original_InventoryAdjustment)) AND ((@IsNull_InventoryVerification = 1 AND [InventoryVerification] IS NULL) OR ([InventoryVerification] = @Original_InventoryVerification)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Position" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Position" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Position" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Position" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DatesEmployed" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DatesEmployed" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DatesEmployed" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DatesEmployed" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDCard" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDCard" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_IDCard" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IDCard" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Mobile" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Mobile" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telephone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EMAIL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EMAIL" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_EMAIL" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EMAIL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShopStore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SaleOrder" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryTransfer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryAdjustment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryAdjustment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryVerification" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Employee] ([Oid], [Name], [Sex], [Position], [DatesEmployed], [IDCard], [Mobile], [Telephone], [EMAIL], [Remarks], [IsActive], [ShopStore], [SaleOrder], [InventoryTransfer], [InventoryAdjustment], [InventoryVerification], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Name, @Sex, @Position, @DatesEmployed, @IDCard, @Mobile, @Telephone, @EMAIL, @Remarks, @IsActive, @ShopStore, @SaleOrder, @InventoryTransfer, @InventoryAdjustment, @InventoryVerification, @OptimisticLockField, @GCRecord);
SELECT Oid, Name, Sex, Position, DatesEmployed, IDCard, Mobile, Telephone, EMAIL, Remarks, IsActive, ShopStore, SaleOrder, InventoryTransfer, InventoryAdjustment, InventoryVerification, OptimisticLockField, GCRecord FROM Employee WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Position" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Position" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DatesEmployed" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DatesEmployed" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IDCard" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IDCard" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Mobile" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@EMAIL" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EMAIL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryAdjustment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Name, Sex, Position, DatesEmployed, IDCard, Mobile, Telephone, EMAIL, Remarks, IsActive, ShopStore, SaleOrder, InventoryTransfer, InventoryAdjustment, InventoryVerification, OptimisticLockField, GCRecord FROM dbo.Employee</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Employee] SET [Oid] = @Oid, [Name] = @Name, [Sex] = @Sex, [Position] = @Position, [DatesEmployed] = @DatesEmployed, [IDCard] = @IDCard, [Mobile] = @Mobile, [Telephone] = @Telephone, [EMAIL] = @EMAIL, [Remarks] = @Remarks, [IsActive] = @IsActive, [ShopStore] = @ShopStore, [SaleOrder] = @SaleOrder, [InventoryTransfer] = @InventoryTransfer, [InventoryAdjustment] = @InventoryAdjustment, [InventoryVerification] = @InventoryVerification, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Sex = 1 AND [Sex] IS NULL) OR ([Sex] = @Original_Sex)) AND ((@IsNull_Position = 1 AND [Position] IS NULL) OR ([Position] = @Original_Position)) AND ((@IsNull_DatesEmployed = 1 AND [DatesEmployed] IS NULL) OR ([DatesEmployed] = @Original_DatesEmployed)) AND ((@IsNull_IDCard = 1 AND [IDCard] IS NULL) OR ([IDCard] = @Original_IDCard)) AND ((@IsNull_Mobile = 1 AND [Mobile] IS NULL) OR ([Mobile] = @Original_Mobile)) AND ((@IsNull_Telephone = 1 AND [Telephone] IS NULL) OR ([Telephone] = @Original_Telephone)) AND ((@IsNull_EMAIL = 1 AND [EMAIL] IS NULL) OR ([EMAIL] = @Original_EMAIL)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActive = 1 AND [IsActive] IS NULL) OR ([IsActive] = @Original_IsActive)) AND ((@IsNull_ShopStore = 1 AND [ShopStore] IS NULL) OR ([ShopStore] = @Original_ShopStore)) AND ((@IsNull_SaleOrder = 1 AND [SaleOrder] IS NULL) OR ([SaleOrder] = @Original_SaleOrder)) AND ((@IsNull_InventoryTransfer = 1 AND [InventoryTransfer] IS NULL) OR ([InventoryTransfer] = @Original_InventoryTransfer)) AND ((@IsNull_InventoryAdjustment = 1 AND [InventoryAdjustment] IS NULL) OR ([InventoryAdjustment] = @Original_InventoryAdjustment)) AND ((@IsNull_InventoryVerification = 1 AND [InventoryVerification] IS NULL) OR ([InventoryVerification] = @Original_InventoryVerification)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Name, Sex, Position, DatesEmployed, IDCard, Mobile, Telephone, EMAIL, Remarks, IsActive, ShopStore, SaleOrder, InventoryTransfer, InventoryAdjustment, InventoryVerification, OptimisticLockField, GCRecord FROM Employee WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Position" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Position" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DatesEmployed" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DatesEmployed" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IDCard" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IDCard" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Mobile" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@EMAIL" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EMAIL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryAdjustment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Sex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Sex" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Position" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Position" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Position" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Position" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DatesEmployed" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DatesEmployed" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DatesEmployed" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DatesEmployed" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IDCard" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IDCard" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_IDCard" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IDCard" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Mobile" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Mobile" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Mobile" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telephone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EMAIL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EMAIL" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_EMAIL" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EMAIL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShopStore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SaleOrder" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryTransfer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryAdjustment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryAdjustment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryVerification" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Name" DataSetColumn="Name" />
              <Mapping SourceColumn="Sex" DataSetColumn="Sex" />
              <Mapping SourceColumn="Position" DataSetColumn="Position" />
              <Mapping SourceColumn="DatesEmployed" DataSetColumn="DatesEmployed" />
              <Mapping SourceColumn="IDCard" DataSetColumn="IDCard" />
              <Mapping SourceColumn="Mobile" DataSetColumn="Mobile" />
              <Mapping SourceColumn="Telephone" DataSetColumn="Telephone" />
              <Mapping SourceColumn="EMAIL" DataSetColumn="EMAIL" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="IsActive" DataSetColumn="IsActive" />
              <Mapping SourceColumn="ShopStore" DataSetColumn="ShopStore" />
              <Mapping SourceColumn="SaleOrder" DataSetColumn="SaleOrder" />
              <Mapping SourceColumn="InventoryTransfer" DataSetColumn="InventoryTransfer" />
              <Mapping SourceColumn="InventoryAdjustment" DataSetColumn="InventoryAdjustment" />
              <Mapping SourceColumn="InventoryVerification" DataSetColumn="InventoryVerification" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GargoTeminalTableAdapter" GeneratorDataComponentClassName="GargoTeminalTableAdapter" Name="GargoTeminal" UserDataComponentName="GargoTeminalTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.GargoTeminal" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[GargoTeminal] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_GargoName = 1 AND [GargoName] IS NULL) OR ([GargoName] = @Original_GargoName)) AND ((@IsNull_Commission = 1 AND [Commission] IS NULL) OR ([Commission] = @Original_Commission)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActiva = 1 AND [IsActiva] IS NULL) OR ([IsActiva] = @Original_IsActiva)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_GargoName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Commission" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Commission" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Commission" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Commission" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActiva" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActiva" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[GargoTeminal] ([Oid], [GargoName], [Commission], [Remarks], [IsActiva], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @GargoName, @Commission, @Remarks, @IsActiva, @OptimisticLockField, @GCRecord);
SELECT Oid, GargoName, Commission, Remarks, IsActiva, OptimisticLockField, GCRecord FROM GargoTeminal WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GargoName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Commission" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Commission" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActiva" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, GargoName, Commission, Remarks, IsActiva, OptimisticLockField, GCRecord FROM dbo.GargoTeminal</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[GargoTeminal] SET [Oid] = @Oid, [GargoName] = @GargoName, [Commission] = @Commission, [Remarks] = @Remarks, [IsActiva] = @IsActiva, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_GargoName = 1 AND [GargoName] IS NULL) OR ([GargoName] = @Original_GargoName)) AND ((@IsNull_Commission = 1 AND [Commission] IS NULL) OR ([Commission] = @Original_Commission)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActiva = 1 AND [IsActiva] IS NULL) OR ([IsActiva] = @Original_IsActiva)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, GargoName, Commission, Remarks, IsActiva, OptimisticLockField, GCRecord FROM GargoTeminal WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GargoName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Commission" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Commission" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActiva" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_GargoName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GargoName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Commission" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Commission" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Commission" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Commission" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActiva" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActiva" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActiva" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="GargoName" DataSetColumn="GargoName" />
              <Mapping SourceColumn="Commission" DataSetColumn="Commission" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="IsActiva" DataSetColumn="IsActiva" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="InOutAccountTableAdapter" GeneratorDataComponentClassName="InOutAccountTableAdapter" Name="InOutAccount" UserDataComponentName="InOutAccountTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.InOutAccount" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[InOutAccount] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Date = 1 AND [Date] IS NULL) OR ([Date] = @Original_Date)) AND ((@IsNull_InOutAccountType = 1 AND [InOutAccountType] IS NULL) OR ([InOutAccountType] = @Original_InOutAccountType)) AND ((@IsNull_Summary = 1 AND [Summary] IS NULL) OR ([Summary] = @Original_Summary)) AND ((@IsNull_Income = 1 AND [Income] IS NULL) OR ([Income] = @Original_Income)) AND ((@IsNull_Pay = 1 AND [Pay] IS NULL) OR ([Pay] = @Original_Pay)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Date" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Date" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InOutAccountType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InOutAccountType" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InOutAccountType" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InOutAccountType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Summary" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Income" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Income" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Income" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Income" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Pay" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Pay" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Pay" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Pay" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[InOutAccount] ([Oid], [Date], [InOutAccountType], [Summary], [Income], [Pay], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Date, @InOutAccountType, @Summary, @Income, @Pay, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, Date, InOutAccountType, Summary, Income, Pay, Remark, OptimisticLockField, GCRecord FROM InOutAccount WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Date" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InOutAccountType" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InOutAccountType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Income" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Income" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Pay" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Pay" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Date, InOutAccountType, Summary, Income, Pay, Remark, OptimisticLockField, GCRecord FROM dbo.InOutAccount</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[InOutAccount] SET [Oid] = @Oid, [Date] = @Date, [InOutAccountType] = @InOutAccountType, [Summary] = @Summary, [Income] = @Income, [Pay] = @Pay, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Date = 1 AND [Date] IS NULL) OR ([Date] = @Original_Date)) AND ((@IsNull_InOutAccountType = 1 AND [InOutAccountType] IS NULL) OR ([InOutAccountType] = @Original_InOutAccountType)) AND ((@IsNull_Summary = 1 AND [Summary] IS NULL) OR ([Summary] = @Original_Summary)) AND ((@IsNull_Income = 1 AND [Income] IS NULL) OR ([Income] = @Original_Income)) AND ((@IsNull_Pay = 1 AND [Pay] IS NULL) OR ([Pay] = @Original_Pay)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Date, InOutAccountType, Summary, Income, Pay, Remark, OptimisticLockField, GCRecord FROM InOutAccount WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Date" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InOutAccountType" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InOutAccountType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Income" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Income" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Pay" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Pay" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Date" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Date" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InOutAccountType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InOutAccountType" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InOutAccountType" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InOutAccountType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Summary" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Summary" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Summary" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Income" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Income" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Income" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Income" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Pay" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Pay" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Pay" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Pay" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Date" DataSetColumn="Date" />
              <Mapping SourceColumn="InOutAccountType" DataSetColumn="InOutAccountType" />
              <Mapping SourceColumn="Summary" DataSetColumn="Summary" />
              <Mapping SourceColumn="Income" DataSetColumn="Income" />
              <Mapping SourceColumn="Pay" DataSetColumn="Pay" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="InOutAccountTypeTableAdapter" GeneratorDataComponentClassName="InOutAccountTypeTableAdapter" Name="InOutAccountType" UserDataComponentName="InOutAccountTypeTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.InOutAccountType" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[InOutAccountType] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_InOutAccount = 1 AND [InOutAccount] IS NULL) OR ([InOutAccount] = @Original_InOutAccount)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InOutAccount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InOutAccount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InOutAccount" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InOutAccount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[InOutAccountType] ([Oid], [Name], [Remark], [InOutAccount], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Name, @Remark, @InOutAccount, @OptimisticLockField, @GCRecord);
SELECT Oid, Name, Remark, InOutAccount, OptimisticLockField, GCRecord FROM InOutAccountType WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InOutAccount" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InOutAccount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Name, Remark, InOutAccount, OptimisticLockField, GCRecord FROM dbo.InOutAccountType</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[InOutAccountType] SET [Oid] = @Oid, [Name] = @Name, [Remark] = @Remark, [InOutAccount] = @InOutAccount, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_InOutAccount = 1 AND [InOutAccount] IS NULL) OR ([InOutAccount] = @Original_InOutAccount)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Name, Remark, InOutAccount, OptimisticLockField, GCRecord FROM InOutAccountType WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InOutAccount" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InOutAccount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InOutAccount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InOutAccount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InOutAccount" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InOutAccount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Name" DataSetColumn="Name" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="InOutAccount" DataSetColumn="InOutAccount" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="InquiryTableAdapter" GeneratorDataComponentClassName="InquiryTableAdapter" Name="Inquiry" UserDataComponentName="InquiryTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.Inquiry" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Inquiry] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_POCode = 1 AND [POCode] IS NULL) OR ([POCode] = @Original_POCode)) AND ((@IsNull_Supplier = 1 AND [Supplier] IS NULL) OR ([Supplier] = @Original_Supplier)) AND ((@IsNull_PurchasePerson = 1 AND [PurchasePerson] IS NULL) OR ([PurchasePerson] = @Original_PurchasePerson)) AND ((@IsNull_RequiredDeliveryDate = 1 AND [RequiredDeliveryDate] IS NULL) OR ([RequiredDeliveryDate] = @Original_RequiredDeliveryDate)) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_ModeOfPayment = 1 AND [ModeOfPayment] IS NULL) OR ([ModeOfPayment] = @Original_ModeOfPayment)) AND ((@IsNull_TaxIncluded = 1 AND [TaxIncluded] IS NULL) OR ([TaxIncluded] = @Original_TaxIncluded)) AND ((@IsNull_InvoiceNumber = 1 AND [InvoiceNumber] IS NULL) OR ([InvoiceNumber] = @Original_InvoiceNumber)) AND ((@IsNull_TaxRate = 1 AND [TaxRate] IS NULL) OR ([TaxRate] = @Original_TaxRate)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_TaxAmount = 1 AND [TaxAmount] IS NULL) OR ([TaxAmount] = @Original_TaxAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_ShipVia = 1 AND [ShipVia] IS NULL) OR ([ShipVia] = @Original_ShipVia)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_POCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasePerson" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasePerson" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RequiredDeliveryDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_RequiredDeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxIncluded" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InvoiceNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxRate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShipVia" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShipVia" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Inquiry] ([Oid], [POCode], [Supplier], [PurchasePerson], [RequiredDeliveryDate], [Discount], [ModeOfPayment], [TaxIncluded], [InvoiceNumber], [TaxRate], [Remarks], [TotalAmount], [DiscountAmount], [TaxAmount], [Amount], [ShipVia], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @POCode, @Supplier, @PurchasePerson, @RequiredDeliveryDate, @Discount, @ModeOfPayment, @TaxIncluded, @InvoiceNumber, @TaxRate, @Remarks, @TotalAmount, @DiscountAmount, @TaxAmount, @Amount, @ShipVia, @OptimisticLockField, @GCRecord);
SELECT Oid, POCode, Supplier, PurchasePerson, RequiredDeliveryDate, Discount, ModeOfPayment, TaxIncluded, InvoiceNumber, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, ShipVia, OptimisticLockField, GCRecord FROM Inquiry WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@POCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasePerson" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@RequiredDeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShipVia" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, POCode, Supplier, PurchasePerson, RequiredDeliveryDate, Discount, ModeOfPayment, TaxIncluded, InvoiceNumber, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, ShipVia, OptimisticLockField, GCRecord FROM dbo.Inquiry</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Inquiry] SET [Oid] = @Oid, [POCode] = @POCode, [Supplier] = @Supplier, [PurchasePerson] = @PurchasePerson, [RequiredDeliveryDate] = @RequiredDeliveryDate, [Discount] = @Discount, [ModeOfPayment] = @ModeOfPayment, [TaxIncluded] = @TaxIncluded, [InvoiceNumber] = @InvoiceNumber, [TaxRate] = @TaxRate, [Remarks] = @Remarks, [TotalAmount] = @TotalAmount, [DiscountAmount] = @DiscountAmount, [TaxAmount] = @TaxAmount, [Amount] = @Amount, [ShipVia] = @ShipVia, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_POCode = 1 AND [POCode] IS NULL) OR ([POCode] = @Original_POCode)) AND ((@IsNull_Supplier = 1 AND [Supplier] IS NULL) OR ([Supplier] = @Original_Supplier)) AND ((@IsNull_PurchasePerson = 1 AND [PurchasePerson] IS NULL) OR ([PurchasePerson] = @Original_PurchasePerson)) AND ((@IsNull_RequiredDeliveryDate = 1 AND [RequiredDeliveryDate] IS NULL) OR ([RequiredDeliveryDate] = @Original_RequiredDeliveryDate)) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_ModeOfPayment = 1 AND [ModeOfPayment] IS NULL) OR ([ModeOfPayment] = @Original_ModeOfPayment)) AND ((@IsNull_TaxIncluded = 1 AND [TaxIncluded] IS NULL) OR ([TaxIncluded] = @Original_TaxIncluded)) AND ((@IsNull_InvoiceNumber = 1 AND [InvoiceNumber] IS NULL) OR ([InvoiceNumber] = @Original_InvoiceNumber)) AND ((@IsNull_TaxRate = 1 AND [TaxRate] IS NULL) OR ([TaxRate] = @Original_TaxRate)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_TaxAmount = 1 AND [TaxAmount] IS NULL) OR ([TaxAmount] = @Original_TaxAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_ShipVia = 1 AND [ShipVia] IS NULL) OR ([ShipVia] = @Original_ShipVia)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, POCode, Supplier, PurchasePerson, RequiredDeliveryDate, Discount, ModeOfPayment, TaxIncluded, InvoiceNumber, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, ShipVia, OptimisticLockField, GCRecord FROM Inquiry WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@POCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasePerson" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@RequiredDeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShipVia" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_POCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasePerson" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasePerson" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RequiredDeliveryDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_RequiredDeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ModeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ModeOfPayment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxIncluded" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InvoiceNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxRate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShipVia" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShipVia" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="POCode" DataSetColumn="POCode" />
              <Mapping SourceColumn="Supplier" DataSetColumn="Supplier" />
              <Mapping SourceColumn="PurchasePerson" DataSetColumn="PurchasePerson" />
              <Mapping SourceColumn="RequiredDeliveryDate" DataSetColumn="RequiredDeliveryDate" />
              <Mapping SourceColumn="Discount" DataSetColumn="Discount" />
              <Mapping SourceColumn="ModeOfPayment" DataSetColumn="ModeOfPayment" />
              <Mapping SourceColumn="TaxIncluded" DataSetColumn="TaxIncluded" />
              <Mapping SourceColumn="InvoiceNumber" DataSetColumn="InvoiceNumber" />
              <Mapping SourceColumn="TaxRate" DataSetColumn="TaxRate" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="TotalAmount" DataSetColumn="TotalAmount" />
              <Mapping SourceColumn="DiscountAmount" DataSetColumn="DiscountAmount" />
              <Mapping SourceColumn="TaxAmount" DataSetColumn="TaxAmount" />
              <Mapping SourceColumn="Amount" DataSetColumn="Amount" />
              <Mapping SourceColumn="ShipVia" DataSetColumn="ShipVia" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="InquiryItemsTableAdapter" GeneratorDataComponentClassName="InquiryItemsTableAdapter" Name="InquiryItems" UserDataComponentName="InquiryItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.InquiryItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[InquiryItems] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_DiscountPercent = 1 AND [DiscountPercent] IS NULL) OR ([DiscountPercent] = @Original_DiscountPercent)) AND ((@IsNull_UnitPrice = 1 AND [UnitPrice] IS NULL) OR ([UnitPrice] = @Original_UnitPrice)) AND ((@IsNull_Quantity = 1 AND [Quantity] IS NULL) OR ([Quantity] = @Original_Quantity)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_Inquiry = 1 AND [Inquiry] IS NULL) OR ([Inquiry] = @Original_Inquiry)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UnitPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Inquiry" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Inquiry" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[InquiryItems] ([Oid], [Product], [DiscountPercent], [UnitPrice], [Quantity], [Remarks], [TotalAmount], [DiscountAmount], [Amount], [Inquiry], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Product, @DiscountPercent, @UnitPrice, @Quantity, @Remarks, @TotalAmount, @DiscountAmount, @Amount, @Inquiry, @OptimisticLockField, @GCRecord);
SELECT Oid, Product, DiscountPercent, UnitPrice, Quantity, Remarks, TotalAmount, DiscountAmount, Amount, Inquiry, OptimisticLockField, GCRecord FROM InquiryItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Inquiry" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Product, DiscountPercent, UnitPrice, Quantity, Remarks, TotalAmount, DiscountAmount, Amount, Inquiry, OptimisticLockField, GCRecord FROM dbo.InquiryItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[InquiryItems] SET [Oid] = @Oid, [Product] = @Product, [DiscountPercent] = @DiscountPercent, [UnitPrice] = @UnitPrice, [Quantity] = @Quantity, [Remarks] = @Remarks, [TotalAmount] = @TotalAmount, [DiscountAmount] = @DiscountAmount, [Amount] = @Amount, [Inquiry] = @Inquiry, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_DiscountPercent = 1 AND [DiscountPercent] IS NULL) OR ([DiscountPercent] = @Original_DiscountPercent)) AND ((@IsNull_UnitPrice = 1 AND [UnitPrice] IS NULL) OR ([UnitPrice] = @Original_UnitPrice)) AND ((@IsNull_Quantity = 1 AND [Quantity] IS NULL) OR ([Quantity] = @Original_Quantity)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_Inquiry = 1 AND [Inquiry] IS NULL) OR ([Inquiry] = @Original_Inquiry)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Product, DiscountPercent, UnitPrice, Quantity, Remarks, TotalAmount, DiscountAmount, Amount, Inquiry, OptimisticLockField, GCRecord FROM InquiryItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Inquiry" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UnitPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Inquiry" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Inquiry" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Product" DataSetColumn="Product" />
              <Mapping SourceColumn="DiscountPercent" DataSetColumn="DiscountPercent" />
              <Mapping SourceColumn="UnitPrice" DataSetColumn="UnitPrice" />
              <Mapping SourceColumn="Quantity" DataSetColumn="Quantity" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="TotalAmount" DataSetColumn="TotalAmount" />
              <Mapping SourceColumn="DiscountAmount" DataSetColumn="DiscountAmount" />
              <Mapping SourceColumn="Amount" DataSetColumn="Amount" />
              <Mapping SourceColumn="Inquiry" DataSetColumn="Inquiry" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="InventoryAdjustmentTableAdapter" GeneratorDataComponentClassName="InventoryAdjustmentTableAdapter" Name="InventoryAdjustment" UserDataComponentName="InventoryAdjustmentTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.InventoryAdjustment" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[InventoryAdjustment] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_FADCode = 1 AND [FADCode] IS NULL) OR ([FADCode] = @Original_FADCode)) AND ((@IsNull_InventoryAdustmentType = 1 AND [InventoryAdustmentType] IS NULL) OR ([InventoryAdustmentType] = @Original_InventoryAdustmentType)) AND ((@IsNull_Employee = 1 AND [Employee] IS NULL) OR ([Employee] = @Original_Employee)) AND ((@IsNull_TransferringDate = 1 AND [TransferringDate] IS NULL) OR ([TransferringDate] = @Original_TransferringDate)) AND ((@IsNull_TransferringReason = 1 AND [TransferringReason] IS NULL) OR ([TransferringReason] = @Original_TransferringReason)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FADCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FADCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FADCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FADCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryAdustmentType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdustmentType" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_InventoryAdustmentType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdustmentType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Employee" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TransferringDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TransferringDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TransferringReason" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TransferringReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[InventoryAdjustment] ([Oid], [FADCode], [InventoryAdustmentType], [Employee], [TransferringDate], [TransferringReason], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @FADCode, @InventoryAdustmentType, @Employee, @TransferringDate, @TransferringReason, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, FADCode, InventoryAdustmentType, Employee, TransferringDate, TransferringReason, Remark, OptimisticLockField, GCRecord FROM InventoryAdjustment WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FADCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FADCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@InventoryAdustmentType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdustmentType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TransferringDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TransferringReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, FADCode, InventoryAdustmentType, Employee, TransferringDate, TransferringReason, Remark, OptimisticLockField, GCRecord FROM dbo.InventoryAdjustment</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[InventoryAdjustment] SET [Oid] = @Oid, [FADCode] = @FADCode, [InventoryAdustmentType] = @InventoryAdustmentType, [Employee] = @Employee, [TransferringDate] = @TransferringDate, [TransferringReason] = @TransferringReason, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_FADCode = 1 AND [FADCode] IS NULL) OR ([FADCode] = @Original_FADCode)) AND ((@IsNull_InventoryAdustmentType = 1 AND [InventoryAdustmentType] IS NULL) OR ([InventoryAdustmentType] = @Original_InventoryAdustmentType)) AND ((@IsNull_Employee = 1 AND [Employee] IS NULL) OR ([Employee] = @Original_Employee)) AND ((@IsNull_TransferringDate = 1 AND [TransferringDate] IS NULL) OR ([TransferringDate] = @Original_TransferringDate)) AND ((@IsNull_TransferringReason = 1 AND [TransferringReason] IS NULL) OR ([TransferringReason] = @Original_TransferringReason)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, FADCode, InventoryAdustmentType, Employee, TransferringDate, TransferringReason, Remark, OptimisticLockField, GCRecord FROM InventoryAdjustment WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FADCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FADCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@InventoryAdustmentType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdustmentType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TransferringDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TransferringReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FADCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FADCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FADCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FADCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryAdustmentType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdustmentType" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_InventoryAdustmentType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdustmentType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Employee" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TransferringDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TransferringDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TransferringReason" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TransferringReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="FADCode" DataSetColumn="FADCode" />
              <Mapping SourceColumn="InventoryAdustmentType" DataSetColumn="InventoryAdustmentType" />
              <Mapping SourceColumn="Employee" DataSetColumn="Employee" />
              <Mapping SourceColumn="TransferringDate" DataSetColumn="TransferringDate" />
              <Mapping SourceColumn="TransferringReason" DataSetColumn="TransferringReason" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="InventoryAdjustmentItemsTableAdapter" GeneratorDataComponentClassName="InventoryAdjustmentItemsTableAdapter" Name="InventoryAdjustmentItems" UserDataComponentName="InventoryAdjustmentItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.InventoryAdjustmentItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[InventoryAdjustmentItems] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_InventoryAdjustment = 1 AND [InventoryAdjustment] IS NULL) OR ([InventoryAdjustment] = @Original_InventoryAdjustment)) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_IssueQuantity = 1 AND [IssueQuantity] IS NULL) OR ([IssueQuantity] = @Original_IssueQuantity)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryAdjustment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryAdjustment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[InventoryAdjustmentItems] ([Oid], [InventoryAdjustment], [Product], [IssueQuantity], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @InventoryAdjustment, @Product, @IssueQuantity, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, InventoryAdjustment, Product, IssueQuantity, Remark, OptimisticLockField, GCRecord FROM InventoryAdjustmentItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryAdjustment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, InventoryAdjustment, Product, IssueQuantity, Remark, OptimisticLockField, GCRecord FROM dbo.InventoryAdjustmentItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[InventoryAdjustmentItems] SET [Oid] = @Oid, [InventoryAdjustment] = @InventoryAdjustment, [Product] = @Product, [IssueQuantity] = @IssueQuantity, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_InventoryAdjustment = 1 AND [InventoryAdjustment] IS NULL) OR ([InventoryAdjustment] = @Original_InventoryAdjustment)) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_IssueQuantity = 1 AND [IssueQuantity] IS NULL) OR ([IssueQuantity] = @Original_IssueQuantity)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, InventoryAdjustment, Product, IssueQuantity, Remark, OptimisticLockField, GCRecord FROM InventoryAdjustmentItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryAdjustment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryAdjustment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryAdjustment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="InventoryAdjustment" DataSetColumn="InventoryAdjustment" />
              <Mapping SourceColumn="Product" DataSetColumn="Product" />
              <Mapping SourceColumn="IssueQuantity" DataSetColumn="IssueQuantity" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="InventoryTransferTableAdapter" GeneratorDataComponentClassName="InventoryTransferTableAdapter" Name="InventoryTransfer" UserDataComponentName="InventoryTransferTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.InventoryTransfer" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[InventoryTransfer] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_FTRCode = 1 AND [FTRCode] IS NULL) OR ([FTRCode] = @Original_FTRCode)) AND ((@IsNull_ExportShopStore = 1 AND [ExportShopStore] IS NULL) OR ([ExportShopStore] = @Original_ExportShopStore)) AND ((@IsNull_ImportShopStore = 1 AND [ImportShopStore] IS NULL) OR ([ImportShopStore] = @Original_ImportShopStore)) AND ((@IsNull_Employee = 1 AND [Employee] IS NULL) OR ([Employee] = @Original_Employee)) AND ((@IsNull_TransferringDate = 1 AND [TransferringDate] IS NULL) OR ([TransferringDate] = @Original_TransferringDate)) AND ((@IsNull_TransferringReason = 1 AND [TransferringReason] IS NULL) OR ([TransferringReason] = @Original_TransferringReason)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FTRCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FTRCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FTRCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FTRCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ExportShopStore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ExportShopStore" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ExportShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ExportShopStore" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ImportShopStore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ImportShopStore" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ImportShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ImportShopStore" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Employee" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TransferringDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TransferringDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TransferringReason" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TransferringReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[InventoryTransfer] ([Oid], [FTRCode], [ExportShopStore], [ImportShopStore], [Employee], [TransferringDate], [TransferringReason], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @FTRCode, @ExportShopStore, @ImportShopStore, @Employee, @TransferringDate, @TransferringReason, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, FTRCode, ExportShopStore, ImportShopStore, Employee, TransferringDate, TransferringReason, Remark, OptimisticLockField, GCRecord FROM InventoryTransfer WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FTRCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FTRCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ExportShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ExportShopStore" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ImportShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ImportShopStore" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TransferringDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TransferringReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, FTRCode, ExportShopStore, ImportShopStore, Employee, TransferringDate, TransferringReason, Remark, OptimisticLockField, GCRecord FROM dbo.InventoryTransfer</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[InventoryTransfer] SET [Oid] = @Oid, [FTRCode] = @FTRCode, [ExportShopStore] = @ExportShopStore, [ImportShopStore] = @ImportShopStore, [Employee] = @Employee, [TransferringDate] = @TransferringDate, [TransferringReason] = @TransferringReason, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_FTRCode = 1 AND [FTRCode] IS NULL) OR ([FTRCode] = @Original_FTRCode)) AND ((@IsNull_ExportShopStore = 1 AND [ExportShopStore] IS NULL) OR ([ExportShopStore] = @Original_ExportShopStore)) AND ((@IsNull_ImportShopStore = 1 AND [ImportShopStore] IS NULL) OR ([ImportShopStore] = @Original_ImportShopStore)) AND ((@IsNull_Employee = 1 AND [Employee] IS NULL) OR ([Employee] = @Original_Employee)) AND ((@IsNull_TransferringDate = 1 AND [TransferringDate] IS NULL) OR ([TransferringDate] = @Original_TransferringDate)) AND ((@IsNull_TransferringReason = 1 AND [TransferringReason] IS NULL) OR ([TransferringReason] = @Original_TransferringReason)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, FTRCode, ExportShopStore, ImportShopStore, Employee, TransferringDate, TransferringReason, Remark, OptimisticLockField, GCRecord FROM InventoryTransfer WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FTRCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FTRCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ExportShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ExportShopStore" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ImportShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ImportShopStore" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TransferringDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TransferringReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FTRCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FTRCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FTRCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FTRCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ExportShopStore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ExportShopStore" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ExportShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ExportShopStore" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ImportShopStore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ImportShopStore" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ImportShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ImportShopStore" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Employee" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TransferringDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TransferringDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TransferringDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TransferringReason" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TransferringReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TransferringReason" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="FTRCode" DataSetColumn="FTRCode" />
              <Mapping SourceColumn="ExportShopStore" DataSetColumn="ExportShopStore" />
              <Mapping SourceColumn="ImportShopStore" DataSetColumn="ImportShopStore" />
              <Mapping SourceColumn="Employee" DataSetColumn="Employee" />
              <Mapping SourceColumn="TransferringDate" DataSetColumn="TransferringDate" />
              <Mapping SourceColumn="TransferringReason" DataSetColumn="TransferringReason" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="InventoryTransferItemsTableAdapter" GeneratorDataComponentClassName="InventoryTransferItemsTableAdapter" Name="InventoryTransferItems" UserDataComponentName="InventoryTransferItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.InventoryTransferItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[InventoryTransferItems] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_InventoryTransfer = 1 AND [InventoryTransfer] IS NULL) OR ([InventoryTransfer] = @Original_InventoryTransfer)) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_IssueQuantity = 1 AND [IssueQuantity] IS NULL) OR ([IssueQuantity] = @Original_IssueQuantity)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryTransfer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[InventoryTransferItems] ([Oid], [InventoryTransfer], [Product], [IssueQuantity], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @InventoryTransfer, @Product, @IssueQuantity, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, InventoryTransfer, Product, IssueQuantity, Remark, OptimisticLockField, GCRecord FROM InventoryTransferItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, InventoryTransfer, Product, IssueQuantity, Remark, OptimisticLockField, GCRecord FROM dbo.InventoryTransferItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[InventoryTransferItems] SET [Oid] = @Oid, [InventoryTransfer] = @InventoryTransfer, [Product] = @Product, [IssueQuantity] = @IssueQuantity, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_InventoryTransfer = 1 AND [InventoryTransfer] IS NULL) OR ([InventoryTransfer] = @Original_InventoryTransfer)) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_IssueQuantity = 1 AND [IssueQuantity] IS NULL) OR ([IssueQuantity] = @Original_IssueQuantity)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, InventoryTransfer, Product, IssueQuantity, Remark, OptimisticLockField, GCRecord FROM InventoryTransferItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryTransfer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IssueQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IssueQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="InventoryTransfer" DataSetColumn="InventoryTransfer" />
              <Mapping SourceColumn="Product" DataSetColumn="Product" />
              <Mapping SourceColumn="IssueQuantity" DataSetColumn="IssueQuantity" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="InventoryVerificationTableAdapter" GeneratorDataComponentClassName="InventoryVerificationTableAdapter" Name="InventoryVerification" UserDataComponentName="InventoryVerificationTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.InventoryVerification" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[InventoryVerification] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_FVFCode = 1 AND [FVFCode] IS NULL) OR ([FVFCode] = @Original_FVFCode)) AND ((@IsNull_ShopStore = 1 AND [ShopStore] IS NULL) OR ([ShopStore] = @Original_ShopStore)) AND ((@IsNull_InventoryDate = 1 AND [InventoryDate] IS NULL) OR ([InventoryDate] = @Original_InventoryDate)) AND ((@IsNull_Employee = 1 AND [Employee] IS NULL) OR ([Employee] = @Original_Employee)) AND ((@IsNull_IsUpdateFlag = 1 AND [IsUpdateFlag] IS NULL) OR ([IsUpdateFlag] = @Original_IsUpdateFlag)) AND ((@IsNull_UpdateDate = 1 AND [UpdateDate] IS NULL) OR ([UpdateDate] = @Original_UpdateDate)) AND ((@IsNull_UpdateUser = 1 AND [UpdateUser] IS NULL) OR ([UpdateUser] = @Original_UpdateUser)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FVFCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FVFCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FVFCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FVFCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShopStore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_InventoryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="InventoryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Employee" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsUpdateFlag" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsUpdateFlag" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsUpdateFlag" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsUpdateFlag" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UpdateDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UpdateDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_UpdateDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="UpdateDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UpdateUser" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UpdateUser" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_UpdateUser" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="UpdateUser" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[InventoryVerification] ([Oid], [FVFCode], [ShopStore], [InventoryDate], [Employee], [IsUpdateFlag], [UpdateDate], [UpdateUser], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @FVFCode, @ShopStore, @InventoryDate, @Employee, @IsUpdateFlag, @UpdateDate, @UpdateUser, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, FVFCode, ShopStore, InventoryDate, Employee, IsUpdateFlag, UpdateDate, UpdateUser, Remark, OptimisticLockField, GCRecord FROM InventoryVerification WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FVFCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FVFCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@InventoryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="InventoryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsUpdateFlag" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsUpdateFlag" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@UpdateDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="UpdateDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@UpdateUser" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="UpdateUser" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, FVFCode, ShopStore, InventoryDate, Employee, IsUpdateFlag, UpdateDate, UpdateUser, Remark, OptimisticLockField, GCRecord FROM dbo.InventoryVerification</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[InventoryVerification] SET [Oid] = @Oid, [FVFCode] = @FVFCode, [ShopStore] = @ShopStore, [InventoryDate] = @InventoryDate, [Employee] = @Employee, [IsUpdateFlag] = @IsUpdateFlag, [UpdateDate] = @UpdateDate, [UpdateUser] = @UpdateUser, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_FVFCode = 1 AND [FVFCode] IS NULL) OR ([FVFCode] = @Original_FVFCode)) AND ((@IsNull_ShopStore = 1 AND [ShopStore] IS NULL) OR ([ShopStore] = @Original_ShopStore)) AND ((@IsNull_InventoryDate = 1 AND [InventoryDate] IS NULL) OR ([InventoryDate] = @Original_InventoryDate)) AND ((@IsNull_Employee = 1 AND [Employee] IS NULL) OR ([Employee] = @Original_Employee)) AND ((@IsNull_IsUpdateFlag = 1 AND [IsUpdateFlag] IS NULL) OR ([IsUpdateFlag] = @Original_IsUpdateFlag)) AND ((@IsNull_UpdateDate = 1 AND [UpdateDate] IS NULL) OR ([UpdateDate] = @Original_UpdateDate)) AND ((@IsNull_UpdateUser = 1 AND [UpdateUser] IS NULL) OR ([UpdateUser] = @Original_UpdateUser)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, FVFCode, ShopStore, InventoryDate, Employee, IsUpdateFlag, UpdateDate, UpdateUser, Remark, OptimisticLockField, GCRecord FROM InventoryVerification WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FVFCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FVFCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@InventoryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="InventoryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsUpdateFlag" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsUpdateFlag" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@UpdateDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="UpdateDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@UpdateUser" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="UpdateUser" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FVFCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FVFCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FVFCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FVFCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShopStore" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShopStore" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShopStore" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_InventoryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="InventoryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Employee" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsUpdateFlag" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsUpdateFlag" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsUpdateFlag" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsUpdateFlag" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UpdateDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UpdateDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_UpdateDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="UpdateDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UpdateUser" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UpdateUser" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_UpdateUser" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="UpdateUser" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="FVFCode" DataSetColumn="FVFCode" />
              <Mapping SourceColumn="ShopStore" DataSetColumn="ShopStore" />
              <Mapping SourceColumn="InventoryDate" DataSetColumn="InventoryDate" />
              <Mapping SourceColumn="Employee" DataSetColumn="Employee" />
              <Mapping SourceColumn="IsUpdateFlag" DataSetColumn="IsUpdateFlag" />
              <Mapping SourceColumn="UpdateDate" DataSetColumn="UpdateDate" />
              <Mapping SourceColumn="UpdateUser" DataSetColumn="UpdateUser" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="InventoryVerificationItemsTableAdapter" GeneratorDataComponentClassName="InventoryVerificationItemsTableAdapter" Name="InventoryVerificationItems" UserDataComponentName="InventoryVerificationItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.InventoryVerificationItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[InventoryVerificationItems] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_InventoryVerification = 1 AND [InventoryVerification] IS NULL) OR ([InventoryVerification] = @Original_InventoryVerification)) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_InventoryQty = 1 AND [InventoryQty] IS NULL) OR ([InventoryQty] = @Original_InventoryQty)) AND ((@IsNull_RealQty = 1 AND [RealQty] IS NULL) OR ([RealQty] = @Original_RealQty)) AND ((@IsNull_DiffQty = 1 AND [DiffQty] IS NULL) OR ([DiffQty] = @Original_DiffQty)) AND ((@IsNull_DiffReason = 1 AND [DiffReason] IS NULL) OR ([DiffReason] = @Original_DiffReason)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryVerification" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryQty" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_InventoryQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryQty" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RealQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RealQty" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RealQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RealQty" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiffQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiffQty" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DiffQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiffQty" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiffReason" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiffReason" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DiffReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DiffReason" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[InventoryVerificationItems] ([Oid], [InventoryVerification], [Product], [InventoryQty], [RealQty], [DiffQty], [DiffReason], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @InventoryVerification, @Product, @InventoryQty, @RealQty, @DiffQty, @DiffReason, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, InventoryVerification, Product, InventoryQty, RealQty, DiffQty, DiffReason, Remark, OptimisticLockField, GCRecord FROM InventoryVerificationItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@InventoryQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryQty" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RealQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RealQty" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DiffQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiffQty" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DiffReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DiffReason" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, InventoryVerification, Product, InventoryQty, RealQty, DiffQty, DiffReason, Remark, OptimisticLockField, GCRecord FROM dbo.InventoryVerificationItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[InventoryVerificationItems] SET [Oid] = @Oid, [InventoryVerification] = @InventoryVerification, [Product] = @Product, [InventoryQty] = @InventoryQty, [RealQty] = @RealQty, [DiffQty] = @DiffQty, [DiffReason] = @DiffReason, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_InventoryVerification = 1 AND [InventoryVerification] IS NULL) OR ([InventoryVerification] = @Original_InventoryVerification)) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_InventoryQty = 1 AND [InventoryQty] IS NULL) OR ([InventoryQty] = @Original_InventoryQty)) AND ((@IsNull_RealQty = 1 AND [RealQty] IS NULL) OR ([RealQty] = @Original_RealQty)) AND ((@IsNull_DiffQty = 1 AND [DiffQty] IS NULL) OR ([DiffQty] = @Original_DiffQty)) AND ((@IsNull_DiffReason = 1 AND [DiffReason] IS NULL) OR ([DiffReason] = @Original_DiffReason)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, InventoryVerification, Product, InventoryQty, RealQty, DiffQty, DiffReason, Remark, OptimisticLockField, GCRecord FROM InventoryVerificationItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@InventoryQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryQty" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RealQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RealQty" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DiffQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiffQty" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DiffReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DiffReason" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryVerification" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryQty" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_InventoryQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryQty" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RealQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RealQty" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RealQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RealQty" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiffQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiffQty" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DiffQty" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiffQty" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiffReason" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiffReason" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DiffReason" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DiffReason" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="InventoryVerification" DataSetColumn="InventoryVerification" />
              <Mapping SourceColumn="Product" DataSetColumn="Product" />
              <Mapping SourceColumn="InventoryQty" DataSetColumn="InventoryQty" />
              <Mapping SourceColumn="RealQty" DataSetColumn="RealQty" />
              <Mapping SourceColumn="DiffQty" DataSetColumn="DiffQty" />
              <Mapping SourceColumn="DiffReason" DataSetColumn="DiffReason" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OptionTableAdapter" GeneratorDataComponentClassName="OptionTableAdapter" Name="Option" UserDataComponentName="OptionTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.[Option]" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Option] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_DefaultLastPrice = 1 AND [DefaultLastPrice] IS NULL) OR ([DefaultLastPrice] = @Original_DefaultLastPrice)) AND ((@IsNull_IsNegativeStocks = 1 AND [IsNegativeStocks] IS NULL) OR ([IsNegativeStocks] = @Original_IsNegativeStocks)) AND ((@IsNull_MaxNegativePeriod = 1 AND [MaxNegativePeriod] IS NULL) OR ([MaxNegativePeriod] = @Original_MaxNegativePeriod)) AND ((@IsNull_TaxRate = 1 AND [TaxRate] IS NULL) OR ([TaxRate] = @Original_TaxRate)) AND ((@IsNull_LockPOPeriod = 1 AND [LockPOPeriod] IS NULL) OR ([LockPOPeriod] = @Original_LockPOPeriod)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DefaultLastPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DefaultLastPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_DefaultLastPrice" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="DefaultLastPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsNegativeStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsNegativeStocks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsNegativeStocks" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsNegativeStocks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaxNegativePeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxNegativePeriod" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaxNegativePeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxNegativePeriod" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxRate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LockPOPeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LockPOPeriod" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_LockPOPeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LockPOPeriod" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Option] ([Oid], [DefaultLastPrice], [IsNegativeStocks], [MaxNegativePeriod], [TaxRate], [LockPOPeriod], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @DefaultLastPrice, @IsNegativeStocks, @MaxNegativePeriod, @TaxRate, @LockPOPeriod, @OptimisticLockField, @GCRecord);
SELECT Oid, DefaultLastPrice, IsNegativeStocks, MaxNegativePeriod, TaxRate, LockPOPeriod, OptimisticLockField, GCRecord FROM [Option] WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@DefaultLastPrice" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="DefaultLastPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsNegativeStocks" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsNegativeStocks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaxNegativePeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxNegativePeriod" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@LockPOPeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LockPOPeriod" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, DefaultLastPrice, IsNegativeStocks, MaxNegativePeriod, TaxRate, LockPOPeriod, OptimisticLockField, GCRecord FROM dbo.[Option]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Option] SET [Oid] = @Oid, [DefaultLastPrice] = @DefaultLastPrice, [IsNegativeStocks] = @IsNegativeStocks, [MaxNegativePeriod] = @MaxNegativePeriod, [TaxRate] = @TaxRate, [LockPOPeriod] = @LockPOPeriod, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_DefaultLastPrice = 1 AND [DefaultLastPrice] IS NULL) OR ([DefaultLastPrice] = @Original_DefaultLastPrice)) AND ((@IsNull_IsNegativeStocks = 1 AND [IsNegativeStocks] IS NULL) OR ([IsNegativeStocks] = @Original_IsNegativeStocks)) AND ((@IsNull_MaxNegativePeriod = 1 AND [MaxNegativePeriod] IS NULL) OR ([MaxNegativePeriod] = @Original_MaxNegativePeriod)) AND ((@IsNull_TaxRate = 1 AND [TaxRate] IS NULL) OR ([TaxRate] = @Original_TaxRate)) AND ((@IsNull_LockPOPeriod = 1 AND [LockPOPeriod] IS NULL) OR ([LockPOPeriod] = @Original_LockPOPeriod)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, DefaultLastPrice, IsNegativeStocks, MaxNegativePeriod, TaxRate, LockPOPeriod, OptimisticLockField, GCRecord FROM [Option] WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@DefaultLastPrice" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="DefaultLastPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsNegativeStocks" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsNegativeStocks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaxNegativePeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxNegativePeriod" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@LockPOPeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LockPOPeriod" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DefaultLastPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DefaultLastPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_DefaultLastPrice" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="DefaultLastPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsNegativeStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsNegativeStocks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsNegativeStocks" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsNegativeStocks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaxNegativePeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxNegativePeriod" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaxNegativePeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxNegativePeriod" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxRate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LockPOPeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LockPOPeriod" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_LockPOPeriod" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LockPOPeriod" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="DefaultLastPrice" DataSetColumn="DefaultLastPrice" />
              <Mapping SourceColumn="IsNegativeStocks" DataSetColumn="IsNegativeStocks" />
              <Mapping SourceColumn="MaxNegativePeriod" DataSetColumn="MaxNegativePeriod" />
              <Mapping SourceColumn="TaxRate" DataSetColumn="TaxRate" />
              <Mapping SourceColumn="LockPOPeriod" DataSetColumn="LockPOPeriod" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTableAdapter" GeneratorDataComponentClassName="ProductTableAdapter" Name="Product" UserDataComponentName="ProductTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.Product" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Product] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_ProductCode = 1 AND [ProductCode] IS NULL) OR ([ProductCode] = @Original_ProductCode)) AND ((@IsNull_ProductName = 1 AND [ProductName] IS NULL) OR ([ProductName] = @Original_ProductName)) AND ((@IsNull_ProductAlias = 1 AND [ProductAlias] IS NULL) OR ([ProductAlias] = @Original_ProductAlias)) AND ((@IsNull_ProductSpecification = 1 AND [ProductSpecification] IS NULL) OR ([ProductSpecification] = @Original_ProductSpecification)) AND ((@IsNull_ProductDescription = 1 AND [ProductDescription] IS NULL) OR ([ProductDescription] = @Original_ProductDescription)) AND ((@IsNull_ProductCategory = 1 AND [ProductCategory] IS NULL) OR ([ProductCategory] = @Original_ProductCategory)) AND ((@IsNull_Unit = 1 AND [Unit] IS NULL) OR ([Unit] = @Original_Unit)) AND ((@IsNull_SafeStocks = 1 AND [SafeStocks] IS NULL) OR ([SafeStocks] = @Original_SafeStocks)) AND ((@IsNull_MaxStocks = 1 AND [MaxStocks] IS NULL) OR ([MaxStocks] = @Original_MaxStocks)) AND ((@IsNull_DirectImportPrices = 1 AND [DirectImportPrices] IS NULL) OR ([DirectImportPrices] = @Original_DirectImportPrices)) AND ((@IsNull_BatchPrice = 1 AND [BatchPrice] IS NULL) OR ([BatchPrice] = @Original_BatchPrice)) AND ((@IsNull_RetailPrice = 1 AND [RetailPrice] IS NULL) OR ([RetailPrice] = @Original_RetailPrice)) AND ((@IsNull_LowestPrice = 1 AND [LowestPrice] IS NULL) OR ([LowestPrice] = @Original_LowestPrice)) AND ((@IsNull_PreferentialPrice = 1 AND [PreferentialPrice] IS NULL) OR ([PreferentialPrice] = @Original_PreferentialPrice)) AND ((@IsNull_AvailableQuantity = 1 AND [AvailableQuantity] IS NULL) OR ([AvailableQuantity] = @Original_AvailableQuantity)) AND ((@IsNull_WasteQuantity = 1 AND [WasteQuantity] IS NULL) OR ([WasteQuantity] = @Original_WasteQuantity)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActive = 1 AND [IsActive] IS NULL) OR ([IsActive] = @Original_IsActive)) AND ((@IsNull_Attachment = 1 AND [Attachment] IS NULL) OR ([Attachment] = @Original_Attachment)) AND ((@IsNull_PurchasingOrderItems = 1 AND [PurchasingOrderItems] IS NULL) OR ([PurchasingOrderItems] = @Original_PurchasingOrderItems)) AND ((@IsNull_SaleOrderItems = 1 AND [SaleOrderItems] IS NULL) OR ([SaleOrderItems] = @Original_SaleOrderItems)) AND ((@IsNull_InquiryItems = 1 AND [InquiryItems] IS NULL) OR ([InquiryItems] = @Original_InquiryItems)) AND ((@IsNull_PurchasingReturnItems = 1 AND [PurchasingReturnItems] IS NULL) OR ([PurchasingReturnItems] = @Original_PurchasingReturnItems)) AND ((@IsNull_CustomerReturnItems = 1 AND [CustomerReturnItems] IS NULL) OR ([CustomerReturnItems] = @Original_CustomerReturnItems)) AND ((@IsNull_InventoryTransferItems = 1 AND [InventoryTransferItems] IS NULL) OR ([InventoryTransferItems] = @Original_InventoryTransferItems)) AND ((@IsNull_InventoryAdjustmentItems = 1 AND [InventoryAdjustmentItems] IS NULL) OR ([InventoryAdjustmentItems] = @Original_InventoryAdjustmentItems)) AND ((@IsNull_InventoryVerificationItems = 1 AND [InventoryVerificationItems] IS NULL) OR ([InventoryVerificationItems] = @Original_InventoryVerificationItems)) AND ((@IsNull_LastNegativeDate = 1 AND [LastNegativeDate] IS NULL) OR ([LastNegativeDate] = @Original_LastNegativeDate)) AND ((@IsNull_QuotationItems = 1 AND [QuotationItems] IS NULL) OR ([QuotationItems] = @Original_QuotationItems)) AND ((@IsNull_LastNegativeStocksDate = 1 AND [LastNegativeStocksDate] IS NULL) OR ([LastNegativeStocksDate] = @Original_LastNegativeStocksDate)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)) AND ((@IsNull_ProductCodeAlias = 1 AND [ProductCodeAlias] IS NULL) OR ([ProductCodeAlias] = @Original_ProductCodeAlias)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductAlias" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductAlias" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductAlias" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductAlias" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductSpecification" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductSpecification" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductSpecification" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductSpecification" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductDescription" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductDescription" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductDescription" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductCategory" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductCategory" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ProductCategory" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ProductCategory" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Unit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Unit" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Unit" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Unit" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SafeStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SafeStocks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SafeStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SafeStocks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaxStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxStocks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaxStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxStocks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DirectImportPrices" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DirectImportPrices" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DirectImportPrices" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DirectImportPrices" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_BatchPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BatchPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_BatchPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="BatchPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RetailPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RetailPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_RetailPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="RetailPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LowestPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LowestPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_LowestPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LowestPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PreferentialPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PreferentialPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PreferentialPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PreferentialPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_WasteQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WasteQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_WasteQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WasteQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Attachment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Attachment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Attachment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Attachment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingOrderItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingOrderItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingOrderItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrderItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SaleOrderItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleOrderItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_SaleOrderItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrderItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InquiryItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InquiryItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InquiryItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InquiryItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingReturnItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingReturnItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingReturnItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturnItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerReturnItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerReturnItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_CustomerReturnItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturnItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryTransferItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryTransferItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryTransferItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransferItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryAdjustmentItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdjustmentItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryAdjustmentItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustmentItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryVerificationItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryVerificationItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryVerificationItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerificationItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LastNegativeDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LastNegativeDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_LastNegativeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastNegativeDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_QuotationItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QuotationItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_QuotationItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="QuotationItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LastNegativeStocksDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LastNegativeStocksDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_LastNegativeStocksDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastNegativeStocksDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductCodeAlias" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductCodeAlias" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductCodeAlias" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductCodeAlias" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Product] ([Oid], [ProductCode], [ProductName], [ProductAlias], [ProductSpecification], [ProductDescription], [ProductCategory], [Unit], [SafeStocks], [MaxStocks], [DirectImportPrices], [BatchPrice], [RetailPrice], [LowestPrice], [PreferentialPrice], [AvailableQuantity], [WasteQuantity], [Remarks], [IsActive], [Attachment], [PurchasingOrderItems], [SaleOrderItems], [InquiryItems], [PurchasingReturnItems], [CustomerReturnItems], [InventoryTransferItems], [InventoryAdjustmentItems], [InventoryVerificationItems], [LastNegativeDate], [QuotationItems], [LastNegativeStocksDate], [OptimisticLockField], [GCRecord], [ProductCodeAlias]) VALUES (@Oid, @ProductCode, @ProductName, @ProductAlias, @ProductSpecification, @ProductDescription, @ProductCategory, @Unit, @SafeStocks, @MaxStocks, @DirectImportPrices, @BatchPrice, @RetailPrice, @LowestPrice, @PreferentialPrice, @AvailableQuantity, @WasteQuantity, @Remarks, @IsActive, @Attachment, @PurchasingOrderItems, @SaleOrderItems, @InquiryItems, @PurchasingReturnItems, @CustomerReturnItems, @InventoryTransferItems, @InventoryAdjustmentItems, @InventoryVerificationItems, @LastNegativeDate, @QuotationItems, @LastNegativeStocksDate, @OptimisticLockField, @GCRecord, @ProductCodeAlias);
SELECT Oid, ProductCode, ProductName, ProductAlias, ProductSpecification, ProductDescription, ProductCategory, Unit, SafeStocks, MaxStocks, DirectImportPrices, BatchPrice, RetailPrice, LowestPrice, PreferentialPrice, AvailableQuantity, WasteQuantity, Remarks, IsActive, Attachment, PurchasingOrderItems, SaleOrderItems, InquiryItems, PurchasingReturnItems, CustomerReturnItems, InventoryTransferItems, InventoryAdjustmentItems, InventoryVerificationItems, LastNegativeDate, QuotationItems, LastNegativeStocksDate, OptimisticLockField, GCRecord, ProductCodeAlias FROM Product WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductAlias" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductAlias" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductSpecification" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductSpecification" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductDescription" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ProductCategory" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ProductCategory" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Unit" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Unit" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SafeStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SafeStocks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaxStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxStocks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DirectImportPrices" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DirectImportPrices" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@BatchPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="BatchPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@RetailPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="RetailPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@LowestPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LowestPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PreferentialPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PreferentialPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@WasteQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WasteQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Attachment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Attachment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingOrderItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrderItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@SaleOrderItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrderItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InquiryItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InquiryItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingReturnItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturnItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@CustomerReturnItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturnItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryTransferItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransferItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryAdjustmentItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustmentItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryVerificationItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerificationItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@LastNegativeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastNegativeDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@QuotationItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="QuotationItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@LastNegativeStocksDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastNegativeStocksDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductCodeAlias" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductCodeAlias" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, ProductCode, ProductName, ProductAlias, ProductSpecification, ProductDescription, ProductCategory, Unit, SafeStocks, MaxStocks, DirectImportPrices, BatchPrice, RetailPrice, LowestPrice, PreferentialPrice, AvailableQuantity, WasteQuantity, Remarks, IsActive, Attachment, PurchasingOrderItems, SaleOrderItems, InquiryItems, PurchasingReturnItems, CustomerReturnItems, InventoryTransferItems, InventoryAdjustmentItems, InventoryVerificationItems, LastNegativeDate, QuotationItems, LastNegativeStocksDate, OptimisticLockField, GCRecord, ProductCodeAlias FROM dbo.Product</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Product] SET [Oid] = @Oid, [ProductCode] = @ProductCode, [ProductName] = @ProductName, [ProductAlias] = @ProductAlias, [ProductSpecification] = @ProductSpecification, [ProductDescription] = @ProductDescription, [ProductCategory] = @ProductCategory, [Unit] = @Unit, [SafeStocks] = @SafeStocks, [MaxStocks] = @MaxStocks, [DirectImportPrices] = @DirectImportPrices, [BatchPrice] = @BatchPrice, [RetailPrice] = @RetailPrice, [LowestPrice] = @LowestPrice, [PreferentialPrice] = @PreferentialPrice, [AvailableQuantity] = @AvailableQuantity, [WasteQuantity] = @WasteQuantity, [Remarks] = @Remarks, [IsActive] = @IsActive, [Attachment] = @Attachment, [PurchasingOrderItems] = @PurchasingOrderItems, [SaleOrderItems] = @SaleOrderItems, [InquiryItems] = @InquiryItems, [PurchasingReturnItems] = @PurchasingReturnItems, [CustomerReturnItems] = @CustomerReturnItems, [InventoryTransferItems] = @InventoryTransferItems, [InventoryAdjustmentItems] = @InventoryAdjustmentItems, [InventoryVerificationItems] = @InventoryVerificationItems, [LastNegativeDate] = @LastNegativeDate, [QuotationItems] = @QuotationItems, [LastNegativeStocksDate] = @LastNegativeStocksDate, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord, [ProductCodeAlias] = @ProductCodeAlias WHERE (([Oid] = @Original_Oid) AND ((@IsNull_ProductCode = 1 AND [ProductCode] IS NULL) OR ([ProductCode] = @Original_ProductCode)) AND ((@IsNull_ProductName = 1 AND [ProductName] IS NULL) OR ([ProductName] = @Original_ProductName)) AND ((@IsNull_ProductAlias = 1 AND [ProductAlias] IS NULL) OR ([ProductAlias] = @Original_ProductAlias)) AND ((@IsNull_ProductSpecification = 1 AND [ProductSpecification] IS NULL) OR ([ProductSpecification] = @Original_ProductSpecification)) AND ((@IsNull_ProductDescription = 1 AND [ProductDescription] IS NULL) OR ([ProductDescription] = @Original_ProductDescription)) AND ((@IsNull_ProductCategory = 1 AND [ProductCategory] IS NULL) OR ([ProductCategory] = @Original_ProductCategory)) AND ((@IsNull_Unit = 1 AND [Unit] IS NULL) OR ([Unit] = @Original_Unit)) AND ((@IsNull_SafeStocks = 1 AND [SafeStocks] IS NULL) OR ([SafeStocks] = @Original_SafeStocks)) AND ((@IsNull_MaxStocks = 1 AND [MaxStocks] IS NULL) OR ([MaxStocks] = @Original_MaxStocks)) AND ((@IsNull_DirectImportPrices = 1 AND [DirectImportPrices] IS NULL) OR ([DirectImportPrices] = @Original_DirectImportPrices)) AND ((@IsNull_BatchPrice = 1 AND [BatchPrice] IS NULL) OR ([BatchPrice] = @Original_BatchPrice)) AND ((@IsNull_RetailPrice = 1 AND [RetailPrice] IS NULL) OR ([RetailPrice] = @Original_RetailPrice)) AND ((@IsNull_LowestPrice = 1 AND [LowestPrice] IS NULL) OR ([LowestPrice] = @Original_LowestPrice)) AND ((@IsNull_PreferentialPrice = 1 AND [PreferentialPrice] IS NULL) OR ([PreferentialPrice] = @Original_PreferentialPrice)) AND ((@IsNull_AvailableQuantity = 1 AND [AvailableQuantity] IS NULL) OR ([AvailableQuantity] = @Original_AvailableQuantity)) AND ((@IsNull_WasteQuantity = 1 AND [WasteQuantity] IS NULL) OR ([WasteQuantity] = @Original_WasteQuantity)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActive = 1 AND [IsActive] IS NULL) OR ([IsActive] = @Original_IsActive)) AND ((@IsNull_Attachment = 1 AND [Attachment] IS NULL) OR ([Attachment] = @Original_Attachment)) AND ((@IsNull_PurchasingOrderItems = 1 AND [PurchasingOrderItems] IS NULL) OR ([PurchasingOrderItems] = @Original_PurchasingOrderItems)) AND ((@IsNull_SaleOrderItems = 1 AND [SaleOrderItems] IS NULL) OR ([SaleOrderItems] = @Original_SaleOrderItems)) AND ((@IsNull_InquiryItems = 1 AND [InquiryItems] IS NULL) OR ([InquiryItems] = @Original_InquiryItems)) AND ((@IsNull_PurchasingReturnItems = 1 AND [PurchasingReturnItems] IS NULL) OR ([PurchasingReturnItems] = @Original_PurchasingReturnItems)) AND ((@IsNull_CustomerReturnItems = 1 AND [CustomerReturnItems] IS NULL) OR ([CustomerReturnItems] = @Original_CustomerReturnItems)) AND ((@IsNull_InventoryTransferItems = 1 AND [InventoryTransferItems] IS NULL) OR ([InventoryTransferItems] = @Original_InventoryTransferItems)) AND ((@IsNull_InventoryAdjustmentItems = 1 AND [InventoryAdjustmentItems] IS NULL) OR ([InventoryAdjustmentItems] = @Original_InventoryAdjustmentItems)) AND ((@IsNull_InventoryVerificationItems = 1 AND [InventoryVerificationItems] IS NULL) OR ([InventoryVerificationItems] = @Original_InventoryVerificationItems)) AND ((@IsNull_LastNegativeDate = 1 AND [LastNegativeDate] IS NULL) OR ([LastNegativeDate] = @Original_LastNegativeDate)) AND ((@IsNull_QuotationItems = 1 AND [QuotationItems] IS NULL) OR ([QuotationItems] = @Original_QuotationItems)) AND ((@IsNull_LastNegativeStocksDate = 1 AND [LastNegativeStocksDate] IS NULL) OR ([LastNegativeStocksDate] = @Original_LastNegativeStocksDate)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)) AND ((@IsNull_ProductCodeAlias = 1 AND [ProductCodeAlias] IS NULL) OR ([ProductCodeAlias] = @Original_ProductCodeAlias)));
SELECT Oid, ProductCode, ProductName, ProductAlias, ProductSpecification, ProductDescription, ProductCategory, Unit, SafeStocks, MaxStocks, DirectImportPrices, BatchPrice, RetailPrice, LowestPrice, PreferentialPrice, AvailableQuantity, WasteQuantity, Remarks, IsActive, Attachment, PurchasingOrderItems, SaleOrderItems, InquiryItems, PurchasingReturnItems, CustomerReturnItems, InventoryTransferItems, InventoryAdjustmentItems, InventoryVerificationItems, LastNegativeDate, QuotationItems, LastNegativeStocksDate, OptimisticLockField, GCRecord, ProductCodeAlias FROM Product WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductAlias" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductAlias" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductSpecification" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductSpecification" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductDescription" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ProductCategory" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ProductCategory" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Unit" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Unit" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SafeStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SafeStocks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaxStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxStocks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DirectImportPrices" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DirectImportPrices" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@BatchPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="BatchPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@RetailPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="RetailPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@LowestPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LowestPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PreferentialPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PreferentialPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@WasteQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WasteQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Attachment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Attachment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingOrderItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrderItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@SaleOrderItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrderItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InquiryItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InquiryItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingReturnItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturnItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@CustomerReturnItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturnItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryTransferItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransferItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryAdjustmentItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustmentItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryVerificationItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerificationItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@LastNegativeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastNegativeDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@QuotationItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="QuotationItems" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@LastNegativeStocksDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastNegativeStocksDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ProductCodeAlias" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductCodeAlias" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductAlias" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductAlias" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductAlias" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductAlias" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductSpecification" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductSpecification" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductSpecification" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductSpecification" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductDescription" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductDescription" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductDescription" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductDescription" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductCategory" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductCategory" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ProductCategory" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ProductCategory" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Unit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Unit" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Unit" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Unit" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SafeStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SafeStocks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SafeStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SafeStocks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaxStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxStocks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaxStocks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaxStocks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DirectImportPrices" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DirectImportPrices" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DirectImportPrices" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DirectImportPrices" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_BatchPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BatchPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_BatchPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="BatchPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RetailPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RetailPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_RetailPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="RetailPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LowestPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LowestPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_LowestPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LowestPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PreferentialPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PreferentialPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PreferentialPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PreferentialPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_WasteQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WasteQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_WasteQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WasteQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Attachment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Attachment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Attachment" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Attachment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingOrderItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingOrderItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingOrderItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrderItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SaleOrderItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleOrderItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_SaleOrderItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrderItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InquiryItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InquiryItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InquiryItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InquiryItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingReturnItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingReturnItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingReturnItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturnItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CustomerReturnItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CustomerReturnItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_CustomerReturnItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="CustomerReturnItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryTransferItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryTransferItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryTransferItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransferItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryAdjustmentItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryAdjustmentItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryAdjustmentItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryAdjustmentItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryVerificationItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryVerificationItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryVerificationItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerificationItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LastNegativeDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LastNegativeDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_LastNegativeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastNegativeDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_QuotationItems" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QuotationItems" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_QuotationItems" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="QuotationItems" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LastNegativeStocksDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LastNegativeStocksDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_LastNegativeStocksDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastNegativeStocksDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductCodeAlias" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductCodeAlias" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ProductCodeAlias" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ProductCodeAlias" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="ProductCode" DataSetColumn="ProductCode" />
              <Mapping SourceColumn="ProductName" DataSetColumn="ProductName" />
              <Mapping SourceColumn="ProductAlias" DataSetColumn="ProductAlias" />
              <Mapping SourceColumn="ProductSpecification" DataSetColumn="ProductSpecification" />
              <Mapping SourceColumn="ProductDescription" DataSetColumn="ProductDescription" />
              <Mapping SourceColumn="ProductCategory" DataSetColumn="ProductCategory" />
              <Mapping SourceColumn="Unit" DataSetColumn="Unit" />
              <Mapping SourceColumn="SafeStocks" DataSetColumn="SafeStocks" />
              <Mapping SourceColumn="MaxStocks" DataSetColumn="MaxStocks" />
              <Mapping SourceColumn="DirectImportPrices" DataSetColumn="DirectImportPrices" />
              <Mapping SourceColumn="BatchPrice" DataSetColumn="BatchPrice" />
              <Mapping SourceColumn="RetailPrice" DataSetColumn="RetailPrice" />
              <Mapping SourceColumn="LowestPrice" DataSetColumn="LowestPrice" />
              <Mapping SourceColumn="PreferentialPrice" DataSetColumn="PreferentialPrice" />
              <Mapping SourceColumn="AvailableQuantity" DataSetColumn="AvailableQuantity" />
              <Mapping SourceColumn="WasteQuantity" DataSetColumn="WasteQuantity" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="IsActive" DataSetColumn="IsActive" />
              <Mapping SourceColumn="Attachment" DataSetColumn="Attachment" />
              <Mapping SourceColumn="PurchasingOrderItems" DataSetColumn="PurchasingOrderItems" />
              <Mapping SourceColumn="SaleOrderItems" DataSetColumn="SaleOrderItems" />
              <Mapping SourceColumn="InquiryItems" DataSetColumn="InquiryItems" />
              <Mapping SourceColumn="PurchasingReturnItems" DataSetColumn="PurchasingReturnItems" />
              <Mapping SourceColumn="CustomerReturnItems" DataSetColumn="CustomerReturnItems" />
              <Mapping SourceColumn="InventoryTransferItems" DataSetColumn="InventoryTransferItems" />
              <Mapping SourceColumn="InventoryAdjustmentItems" DataSetColumn="InventoryAdjustmentItems" />
              <Mapping SourceColumn="InventoryVerificationItems" DataSetColumn="InventoryVerificationItems" />
              <Mapping SourceColumn="LastNegativeDate" DataSetColumn="LastNegativeDate" />
              <Mapping SourceColumn="QuotationItems" DataSetColumn="QuotationItems" />
              <Mapping SourceColumn="LastNegativeStocksDate" DataSetColumn="LastNegativeStocksDate" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
              <Mapping SourceColumn="ProductCodeAlias" DataSetColumn="ProductCodeAlias" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductCategoryTableAdapter" GeneratorDataComponentClassName="ProductCategoryTableAdapter" Name="ProductCategory" UserDataComponentName="ProductCategoryTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.ProductCategory" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[ProductCategory] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_CategoryName = 1 AND [CategoryName] IS NULL) OR ([CategoryName] = @Original_CategoryName)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CategoryName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CategoryName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CategoryName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CategoryName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[ProductCategory] ([Oid], [CategoryName], [Remarks], [Product], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @CategoryName, @Remarks, @Product, @OptimisticLockField, @GCRecord);
SELECT Oid, CategoryName, Remarks, Product, OptimisticLockField, GCRecord FROM ProductCategory WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CategoryName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CategoryName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, CategoryName, Remarks, Product, OptimisticLockField, GCRecord FROM dbo.ProductCategory</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[ProductCategory] SET [Oid] = @Oid, [CategoryName] = @CategoryName, [Remarks] = @Remarks, [Product] = @Product, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_CategoryName = 1 AND [CategoryName] IS NULL) OR ([CategoryName] = @Original_CategoryName)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, CategoryName, Remarks, Product, OptimisticLockField, GCRecord FROM ProductCategory WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CategoryName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CategoryName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CategoryName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CategoryName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CategoryName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CategoryName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="CategoryName" DataSetColumn="CategoryName" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="Product" DataSetColumn="Product" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PurchasingOrderTableAdapter" GeneratorDataComponentClassName="PurchasingOrderTableAdapter" Name="PurchasingOrder" UserDataComponentName="PurchasingOrderTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.PurchasingOrder" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[PurchasingOrder] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_POCode = 1 AND [POCode] IS NULL) OR ([POCode] = @Original_POCode)) AND ((@IsNull_Supplier = 1 AND [Supplier] IS NULL) OR ([Supplier] = @Original_Supplier)) AND ((@IsNull_PurchasePerson = 1 AND [PurchasePerson] IS NULL) OR ([PurchasePerson] = @Original_PurchasePerson)) AND ((@IsNull_RequiredDeliveryDate = 1 AND [RequiredDeliveryDate] IS NULL) OR ([RequiredDeliveryDate] = @Original_RequiredDeliveryDate)) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_TaxIncluded = 1 AND [TaxIncluded] IS NULL) OR ([TaxIncluded] = @Original_TaxIncluded)) AND ((@IsNull_InvoiceNumber = 1 AND [InvoiceNumber] IS NULL) OR ([InvoiceNumber] = @Original_InvoiceNumber)) AND ((@IsNull_ShipVia = 1 AND [ShipVia] IS NULL) OR ([ShipVia] = @Original_ShipVia)) AND ((@IsNull_TaxRate = 1 AND [TaxRate] IS NULL) OR ([TaxRate] = @Original_TaxRate)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_TaxAmount = 1 AND [TaxAmount] IS NULL) OR ([TaxAmount] = @Original_TaxAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_ReceivedCash = 1 AND [ReceivedCash] IS NULL) OR ([ReceivedCash] = @Original_ReceivedCash)) AND ((@IsNull_ReceivedRemitCash = 1 AND [ReceivedRemitCash] IS NULL) OR ([ReceivedRemitCash] = @Original_ReceivedRemitCash)) AND ((@IsNull_ReceivedUnpaid = 1 AND [ReceivedUnpaid] IS NULL) OR ([ReceivedUnpaid] = @Original_ReceivedUnpaid)) AND ((@IsNull_ReceivedCollection = 1 AND [ReceivedCollection] IS NULL) OR ([ReceivedCollection] = @Original_ReceivedCollection)) AND ((@IsNull_GargoFare = 1 AND [GargoFare] IS NULL) OR ([GargoFare] = @Original_GargoFare)) AND ((@IsNull_GargoServiceCharge = 1 AND [GargoServiceCharge] IS NULL) OR ([GargoServiceCharge] = @Original_GargoServiceCharge)) AND ((@IsNull_GargoTeminal = 1 AND [GargoTeminal] IS NULL) OR ([GargoTeminal] = @Original_GargoTeminal)) AND ((@IsNull_POStatus = 1 AND [POStatus] IS NULL) OR ([POStatus] = @Original_POStatus)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)) AND ((@IsNull_HasPaymentAmount = 1 AND [HasPaymentAmount] IS NULL) OR ([HasPaymentAmount] = @Original_HasPaymentAmount)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_POCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasePerson" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasePerson" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RequiredDeliveryDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_RequiredDeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxIncluded" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InvoiceNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShipVia" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShipVia" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxRate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedCash" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedRemitCash" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedRemitCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedUnpaid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedUnpaid" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedCollection" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ReceivedCollection" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoFare" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_GargoFare" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoServiceCharge" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_GargoServiceCharge" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POStatus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_POStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POStatus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_HasPaymentAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_HasPaymentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[PurchasingOrder] ([Oid], [POCode], [Supplier], [PurchasePerson], [RequiredDeliveryDate], [Discount], [TaxIncluded], [InvoiceNumber], [ShipVia], [TaxRate], [Remarks], [TotalAmount], [DiscountAmount], [TaxAmount], [Amount], [ReceivedCash], [ReceivedRemitCash], [ReceivedUnpaid], [ReceivedCollection], [GargoFare], [GargoServiceCharge], [GargoTeminal], [POStatus], [OptimisticLockField], [GCRecord], [HasPaymentAmount]) VALUES (@Oid, @POCode, @Supplier, @PurchasePerson, @RequiredDeliveryDate, @Discount, @TaxIncluded, @InvoiceNumber, @ShipVia, @TaxRate, @Remarks, @TotalAmount, @DiscountAmount, @TaxAmount, @Amount, @ReceivedCash, @ReceivedRemitCash, @ReceivedUnpaid, @ReceivedCollection, @GargoFare, @GargoServiceCharge, @GargoTeminal, @POStatus, @OptimisticLockField, @GCRecord, @HasPaymentAmount);
SELECT Oid, POCode, Supplier, PurchasePerson, RequiredDeliveryDate, Discount, TaxIncluded, InvoiceNumber, ShipVia, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, ReceivedCash, ReceivedRemitCash, ReceivedUnpaid, ReceivedCollection, GargoFare, GargoServiceCharge, GargoTeminal, POStatus, OptimisticLockField, GCRecord, HasPaymentAmount FROM PurchasingOrder WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@POCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasePerson" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@RequiredDeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShipVia" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedRemitCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedUnpaid" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReceivedCollection" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@GargoFare" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@GargoServiceCharge" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@POStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@HasPaymentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, POCode, Supplier, PurchasePerson, RequiredDeliveryDate, Discount, TaxIncluded, InvoiceNumber, ShipVia, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, ReceivedCash, ReceivedRemitCash, ReceivedUnpaid, ReceivedCollection, GargoFare, GargoServiceCharge, GargoTeminal, POStatus, OptimisticLockField, GCRecord, HasPaymentAmount FROM dbo.PurchasingOrder</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[PurchasingOrder] SET [Oid] = @Oid, [POCode] = @POCode, [Supplier] = @Supplier, [PurchasePerson] = @PurchasePerson, [RequiredDeliveryDate] = @RequiredDeliveryDate, [Discount] = @Discount, [TaxIncluded] = @TaxIncluded, [InvoiceNumber] = @InvoiceNumber, [ShipVia] = @ShipVia, [TaxRate] = @TaxRate, [Remarks] = @Remarks, [TotalAmount] = @TotalAmount, [DiscountAmount] = @DiscountAmount, [TaxAmount] = @TaxAmount, [Amount] = @Amount, [ReceivedCash] = @ReceivedCash, [ReceivedRemitCash] = @ReceivedRemitCash, [ReceivedUnpaid] = @ReceivedUnpaid, [ReceivedCollection] = @ReceivedCollection, [GargoFare] = @GargoFare, [GargoServiceCharge] = @GargoServiceCharge, [GargoTeminal] = @GargoTeminal, [POStatus] = @POStatus, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord, [HasPaymentAmount] = @HasPaymentAmount WHERE (([Oid] = @Original_Oid) AND ((@IsNull_POCode = 1 AND [POCode] IS NULL) OR ([POCode] = @Original_POCode)) AND ((@IsNull_Supplier = 1 AND [Supplier] IS NULL) OR ([Supplier] = @Original_Supplier)) AND ((@IsNull_PurchasePerson = 1 AND [PurchasePerson] IS NULL) OR ([PurchasePerson] = @Original_PurchasePerson)) AND ((@IsNull_RequiredDeliveryDate = 1 AND [RequiredDeliveryDate] IS NULL) OR ([RequiredDeliveryDate] = @Original_RequiredDeliveryDate)) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_TaxIncluded = 1 AND [TaxIncluded] IS NULL) OR ([TaxIncluded] = @Original_TaxIncluded)) AND ((@IsNull_InvoiceNumber = 1 AND [InvoiceNumber] IS NULL) OR ([InvoiceNumber] = @Original_InvoiceNumber)) AND ((@IsNull_ShipVia = 1 AND [ShipVia] IS NULL) OR ([ShipVia] = @Original_ShipVia)) AND ((@IsNull_TaxRate = 1 AND [TaxRate] IS NULL) OR ([TaxRate] = @Original_TaxRate)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_TaxAmount = 1 AND [TaxAmount] IS NULL) OR ([TaxAmount] = @Original_TaxAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_ReceivedCash = 1 AND [ReceivedCash] IS NULL) OR ([ReceivedCash] = @Original_ReceivedCash)) AND ((@IsNull_ReceivedRemitCash = 1 AND [ReceivedRemitCash] IS NULL) OR ([ReceivedRemitCash] = @Original_ReceivedRemitCash)) AND ((@IsNull_ReceivedUnpaid = 1 AND [ReceivedUnpaid] IS NULL) OR ([ReceivedUnpaid] = @Original_ReceivedUnpaid)) AND ((@IsNull_ReceivedCollection = 1 AND [ReceivedCollection] IS NULL) OR ([ReceivedCollection] = @Original_ReceivedCollection)) AND ((@IsNull_GargoFare = 1 AND [GargoFare] IS NULL) OR ([GargoFare] = @Original_GargoFare)) AND ((@IsNull_GargoServiceCharge = 1 AND [GargoServiceCharge] IS NULL) OR ([GargoServiceCharge] = @Original_GargoServiceCharge)) AND ((@IsNull_GargoTeminal = 1 AND [GargoTeminal] IS NULL) OR ([GargoTeminal] = @Original_GargoTeminal)) AND ((@IsNull_POStatus = 1 AND [POStatus] IS NULL) OR ([POStatus] = @Original_POStatus)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)) AND ((@IsNull_HasPaymentAmount = 1 AND [HasPaymentAmount] IS NULL) OR ([HasPaymentAmount] = @Original_HasPaymentAmount)));
SELECT Oid, POCode, Supplier, PurchasePerson, RequiredDeliveryDate, Discount, TaxIncluded, InvoiceNumber, ShipVia, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, ReceivedCash, ReceivedRemitCash, ReceivedUnpaid, ReceivedCollection, GargoFare, GargoServiceCharge, GargoTeminal, POStatus, OptimisticLockField, GCRecord, HasPaymentAmount FROM PurchasingOrder WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@POCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasePerson" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@RequiredDeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShipVia" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedRemitCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedUnpaid" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReceivedCollection" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@GargoFare" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@GargoServiceCharge" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@POStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@HasPaymentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_POCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasePerson" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasePerson" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasePerson" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RequiredDeliveryDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_RequiredDeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="RequiredDeliveryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxIncluded" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InvoiceNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShipVia" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShipVia" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShipVia" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxRate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedCash" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedRemitCash" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedRemitCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedUnpaid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedUnpaid" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedCollection" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ReceivedCollection" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoFare" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_GargoFare" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoServiceCharge" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_GargoServiceCharge" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POStatus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_POStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POStatus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_HasPaymentAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_HasPaymentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="POCode" DataSetColumn="POCode" />
              <Mapping SourceColumn="Supplier" DataSetColumn="Supplier" />
              <Mapping SourceColumn="PurchasePerson" DataSetColumn="PurchasePerson" />
              <Mapping SourceColumn="RequiredDeliveryDate" DataSetColumn="RequiredDeliveryDate" />
              <Mapping SourceColumn="Discount" DataSetColumn="Discount" />
              <Mapping SourceColumn="TaxIncluded" DataSetColumn="TaxIncluded" />
              <Mapping SourceColumn="InvoiceNumber" DataSetColumn="InvoiceNumber" />
              <Mapping SourceColumn="ShipVia" DataSetColumn="ShipVia" />
              <Mapping SourceColumn="TaxRate" DataSetColumn="TaxRate" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="TotalAmount" DataSetColumn="TotalAmount" />
              <Mapping SourceColumn="DiscountAmount" DataSetColumn="DiscountAmount" />
              <Mapping SourceColumn="TaxAmount" DataSetColumn="TaxAmount" />
              <Mapping SourceColumn="Amount" DataSetColumn="Amount" />
              <Mapping SourceColumn="ReceivedCash" DataSetColumn="ReceivedCash" />
              <Mapping SourceColumn="ReceivedRemitCash" DataSetColumn="ReceivedRemitCash" />
              <Mapping SourceColumn="ReceivedUnpaid" DataSetColumn="ReceivedUnpaid" />
              <Mapping SourceColumn="ReceivedCollection" DataSetColumn="ReceivedCollection" />
              <Mapping SourceColumn="GargoFare" DataSetColumn="GargoFare" />
              <Mapping SourceColumn="GargoServiceCharge" DataSetColumn="GargoServiceCharge" />
              <Mapping SourceColumn="GargoTeminal" DataSetColumn="GargoTeminal" />
              <Mapping SourceColumn="POStatus" DataSetColumn="POStatus" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
              <Mapping SourceColumn="HasPaymentAmount" DataSetColumn="HasPaymentAmount" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PurchasingOrderItemsTableAdapter" GeneratorDataComponentClassName="PurchasingOrderItemsTableAdapter" Name="PurchasingOrderItems" UserDataComponentName="PurchasingOrderItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.PurchasingOrderItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[PurchasingOrderItems] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_DiscountPercent = 1 AND [DiscountPercent] IS NULL) OR ([DiscountPercent] = @Original_DiscountPercent)) AND ((@IsNull_UnitPrice = 1 AND [UnitPrice] IS NULL) OR ([UnitPrice] = @Original_UnitPrice)) AND ((@IsNull_Quantity = 1 AND [Quantity] IS NULL) OR ([Quantity] = @Original_Quantity)) AND ((@IsNull_PurchasingOrder = 1 AND [PurchasingOrder] IS NULL) OR ([PurchasingOrder] = @Original_PurchasingOrder)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UnitPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingOrder" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[PurchasingOrderItems] ([Oid], [Product], [DiscountPercent], [UnitPrice], [Quantity], [PurchasingOrder], [Remarks], [TotalAmount], [DiscountAmount], [Amount], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Product, @DiscountPercent, @UnitPrice, @Quantity, @PurchasingOrder, @Remarks, @TotalAmount, @DiscountAmount, @Amount, @OptimisticLockField, @GCRecord);
SELECT Oid, Product, DiscountPercent, UnitPrice, Quantity, PurchasingOrder, Remarks, TotalAmount, DiscountAmount, Amount, OptimisticLockField, GCRecord FROM PurchasingOrderItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Product, DiscountPercent, UnitPrice, Quantity, PurchasingOrder, Remarks, TotalAmount, DiscountAmount, Amount, OptimisticLockField, GCRecord FROM dbo.PurchasingOrderItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[PurchasingOrderItems] SET [Oid] = @Oid, [Product] = @Product, [DiscountPercent] = @DiscountPercent, [UnitPrice] = @UnitPrice, [Quantity] = @Quantity, [PurchasingOrder] = @PurchasingOrder, [Remarks] = @Remarks, [TotalAmount] = @TotalAmount, [DiscountAmount] = @DiscountAmount, [Amount] = @Amount, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_DiscountPercent = 1 AND [DiscountPercent] IS NULL) OR ([DiscountPercent] = @Original_DiscountPercent)) AND ((@IsNull_UnitPrice = 1 AND [UnitPrice] IS NULL) OR ([UnitPrice] = @Original_UnitPrice)) AND ((@IsNull_Quantity = 1 AND [Quantity] IS NULL) OR ([Quantity] = @Original_Quantity)) AND ((@IsNull_PurchasingOrder = 1 AND [PurchasingOrder] IS NULL) OR ([PurchasingOrder] = @Original_PurchasingOrder)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Product, DiscountPercent, UnitPrice, Quantity, PurchasingOrder, Remarks, TotalAmount, DiscountAmount, Amount, OptimisticLockField, GCRecord FROM PurchasingOrderItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UnitPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingOrder" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Product" DataSetColumn="Product" />
              <Mapping SourceColumn="DiscountPercent" DataSetColumn="DiscountPercent" />
              <Mapping SourceColumn="UnitPrice" DataSetColumn="UnitPrice" />
              <Mapping SourceColumn="Quantity" DataSetColumn="Quantity" />
              <Mapping SourceColumn="PurchasingOrder" DataSetColumn="PurchasingOrder" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="TotalAmount" DataSetColumn="TotalAmount" />
              <Mapping SourceColumn="DiscountAmount" DataSetColumn="DiscountAmount" />
              <Mapping SourceColumn="Amount" DataSetColumn="Amount" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PurchasingReturnTableAdapter" GeneratorDataComponentClassName="PurchasingReturnTableAdapter" Name="PurchasingReturn" UserDataComponentName="PurchasingReturnTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.PurchasingReturn" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[PurchasingReturn] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_PRDCode = 1 AND [PRDCode] IS NULL) OR ([PRDCode] = @Original_PRDCode)) AND ((@IsNull_Supplier = 1 AND [Supplier] IS NULL) OR ([Supplier] = @Original_Supplier)) AND ((@IsNull_PONumber = 1 AND [PONumber] IS NULL) OR ([PONumber] = @Original_PONumber)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_ReturnsDate = 1 AND [ReturnsDate] IS NULL) OR ([ReturnsDate] = @Original_ReturnsDate)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PRDCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRDCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PRDCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PRDCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PONumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PONumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PONumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PONumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnsDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ReturnsDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[PurchasingReturn] ([Oid], [PRDCode], [Supplier], [PONumber], [Remark], [ReturnsDate], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @PRDCode, @Supplier, @PONumber, @Remark, @ReturnsDate, @OptimisticLockField, @GCRecord);
SELECT Oid, PRDCode, Supplier, PONumber, Remark, ReturnsDate, OptimisticLockField, GCRecord FROM PurchasingReturn WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PRDCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PRDCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PONumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PONumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ReturnsDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, PRDCode, Supplier, PONumber, Remark, ReturnsDate, OptimisticLockField, GCRecord FROM dbo.PurchasingReturn</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[PurchasingReturn] SET [Oid] = @Oid, [PRDCode] = @PRDCode, [Supplier] = @Supplier, [PONumber] = @PONumber, [Remark] = @Remark, [ReturnsDate] = @ReturnsDate, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_PRDCode = 1 AND [PRDCode] IS NULL) OR ([PRDCode] = @Original_PRDCode)) AND ((@IsNull_Supplier = 1 AND [Supplier] IS NULL) OR ([Supplier] = @Original_Supplier)) AND ((@IsNull_PONumber = 1 AND [PONumber] IS NULL) OR ([PONumber] = @Original_PONumber)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_ReturnsDate = 1 AND [ReturnsDate] IS NULL) OR ([ReturnsDate] = @Original_ReturnsDate)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, PRDCode, Supplier, PONumber, Remark, ReturnsDate, OptimisticLockField, GCRecord FROM PurchasingReturn WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PRDCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PRDCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PONumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PONumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ReturnsDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PRDCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRDCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PRDCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PRDCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Supplier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Supplier" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Supplier" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PONumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PONumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PONumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PONumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnsDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ReturnsDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReturnsDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="PRDCode" DataSetColumn="PRDCode" />
              <Mapping SourceColumn="Supplier" DataSetColumn="Supplier" />
              <Mapping SourceColumn="PONumber" DataSetColumn="PONumber" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="ReturnsDate" DataSetColumn="ReturnsDate" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PurchasingReturnItemsTableAdapter" GeneratorDataComponentClassName="PurchasingReturnItemsTableAdapter" Name="PurchasingReturnItems" UserDataComponentName="PurchasingReturnItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.PurchasingReturnItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[PurchasingReturnItems] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_AvailableQuantity = 1 AND [AvailableQuantity] IS NULL) OR ([AvailableQuantity] = @Original_AvailableQuantity)) AND ((@IsNull_WasteQuantify = 1 AND [WasteQuantify] IS NULL) OR ([WasteQuantify] = @Original_WasteQuantify)) AND ((@IsNull_ReturnPrice = 1 AND [ReturnPrice] IS NULL) OR ([ReturnPrice] = @Original_ReturnPrice)) AND ((@IsNull_ReturnsCause = 1 AND [ReturnsCause] IS NULL) OR ([ReturnsCause] = @Original_ReturnsCause)) AND ((@IsNull_PurchasingReturn = 1 AND [PurchasingReturn] IS NULL) OR ([PurchasingReturn] = @Original_PurchasingReturn)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_WasteQuantify" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_WasteQuantify" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReturnPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnsCause" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ReturnsCause" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingReturn" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[PurchasingReturnItems] ([Oid], [Product], [AvailableQuantity], [WasteQuantify], [ReturnPrice], [ReturnsCause], [PurchasingReturn], [Remark], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Product, @AvailableQuantity, @WasteQuantify, @ReturnPrice, @ReturnsCause, @PurchasingReturn, @Remark, @OptimisticLockField, @GCRecord);
SELECT Oid, Product, AvailableQuantity, WasteQuantify, ReturnPrice, ReturnsCause, PurchasingReturn, Remark, OptimisticLockField, GCRecord FROM PurchasingReturnItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@WasteQuantify" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReturnPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReturnsCause" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Product, AvailableQuantity, WasteQuantify, ReturnPrice, ReturnsCause, PurchasingReturn, Remark, OptimisticLockField, GCRecord FROM dbo.PurchasingReturnItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[PurchasingReturnItems] SET [Oid] = @Oid, [Product] = @Product, [AvailableQuantity] = @AvailableQuantity, [WasteQuantify] = @WasteQuantify, [ReturnPrice] = @ReturnPrice, [ReturnsCause] = @ReturnsCause, [PurchasingReturn] = @PurchasingReturn, [Remark] = @Remark, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_AvailableQuantity = 1 AND [AvailableQuantity] IS NULL) OR ([AvailableQuantity] = @Original_AvailableQuantity)) AND ((@IsNull_WasteQuantify = 1 AND [WasteQuantify] IS NULL) OR ([WasteQuantify] = @Original_WasteQuantify)) AND ((@IsNull_ReturnPrice = 1 AND [ReturnPrice] IS NULL) OR ([ReturnPrice] = @Original_ReturnPrice)) AND ((@IsNull_ReturnsCause = 1 AND [ReturnsCause] IS NULL) OR ([ReturnsCause] = @Original_ReturnsCause)) AND ((@IsNull_PurchasingReturn = 1 AND [PurchasingReturn] IS NULL) OR ([PurchasingReturn] = @Original_PurchasingReturn)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Product, AvailableQuantity, WasteQuantify, ReturnPrice, ReturnsCause, PurchasingReturn, Remark, OptimisticLockField, GCRecord FROM PurchasingReturnItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@WasteQuantify" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReturnPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ReturnsCause" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AvailableQuantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AvailableQuantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_WasteQuantify" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_WasteQuantify" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="WasteQuantify" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReturnPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReturnPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReturnsCause" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ReturnsCause" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ReturnsCause" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingReturn" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Product" DataSetColumn="Product" />
              <Mapping SourceColumn="AvailableQuantity" DataSetColumn="AvailableQuantity" />
              <Mapping SourceColumn="WasteQuantify" DataSetColumn="WasteQuantify" />
              <Mapping SourceColumn="ReturnPrice" DataSetColumn="ReturnPrice" />
              <Mapping SourceColumn="ReturnsCause" DataSetColumn="ReturnsCause" />
              <Mapping SourceColumn="PurchasingReturn" DataSetColumn="PurchasingReturn" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="QuotationTableAdapter" GeneratorDataComponentClassName="QuotationTableAdapter" Name="Quotation" UserDataComponentName="QuotationTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.Quotation" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Quotation] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_QUCode = 1 AND [QUCode] IS NULL) OR ([QUCode] = @Original_QUCode)) AND ((@IsNull_DeliveryDate = 1 AND [DeliveryDate] IS NULL) OR ([DeliveryDate] = @Original_DeliveryDate)) AND ((@IsNull_TimeOfPayment = 1 AND [TimeOfPayment] IS NULL) OR ([TimeOfPayment] = @Original_TimeOfPayment)) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_TaxIncluded = 1 AND [TaxIncluded] IS NULL) OR ([TaxIncluded] = @Original_TaxIncluded)) AND ((@IsNull_InvoiceNumber = 1 AND [InvoiceNumber] IS NULL) OR ([InvoiceNumber] = @Original_InvoiceNumber)) AND ((@IsNull_TaxRate = 1 AND [TaxRate] IS NULL) OR ([TaxRate] = @Original_TaxRate)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_TaxAmount = 1 AND [TaxAmount] IS NULL) OR ([TaxAmount] = @Original_TaxAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_QUCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QUCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_QUCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="QUCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DeliveryDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TimeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeOfPayment" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxIncluded" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InvoiceNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxRate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Quotation] ([Oid], [QUCode], [DeliveryDate], [TimeOfPayment], [Discount], [TaxIncluded], [InvoiceNumber], [TaxRate], [Remarks], [TotalAmount], [DiscountAmount], [TaxAmount], [Amount], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @QUCode, @DeliveryDate, @TimeOfPayment, @Discount, @TaxIncluded, @InvoiceNumber, @TaxRate, @Remarks, @TotalAmount, @DiscountAmount, @TaxAmount, @Amount, @OptimisticLockField, @GCRecord);
SELECT Oid, QUCode, DeliveryDate, TimeOfPayment, Discount, TaxIncluded, InvoiceNumber, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, OptimisticLockField, GCRecord FROM Quotation WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@QUCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="QUCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeOfPayment" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, QUCode, DeliveryDate, TimeOfPayment, Discount, TaxIncluded, InvoiceNumber, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, OptimisticLockField, GCRecord FROM dbo.Quotation</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Quotation] SET [Oid] = @Oid, [QUCode] = @QUCode, [DeliveryDate] = @DeliveryDate, [TimeOfPayment] = @TimeOfPayment, [Discount] = @Discount, [TaxIncluded] = @TaxIncluded, [InvoiceNumber] = @InvoiceNumber, [TaxRate] = @TaxRate, [Remarks] = @Remarks, [TotalAmount] = @TotalAmount, [DiscountAmount] = @DiscountAmount, [TaxAmount] = @TaxAmount, [Amount] = @Amount, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_QUCode = 1 AND [QUCode] IS NULL) OR ([QUCode] = @Original_QUCode)) AND ((@IsNull_DeliveryDate = 1 AND [DeliveryDate] IS NULL) OR ([DeliveryDate] = @Original_DeliveryDate)) AND ((@IsNull_TimeOfPayment = 1 AND [TimeOfPayment] IS NULL) OR ([TimeOfPayment] = @Original_TimeOfPayment)) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_TaxIncluded = 1 AND [TaxIncluded] IS NULL) OR ([TaxIncluded] = @Original_TaxIncluded)) AND ((@IsNull_InvoiceNumber = 1 AND [InvoiceNumber] IS NULL) OR ([InvoiceNumber] = @Original_InvoiceNumber)) AND ((@IsNull_TaxRate = 1 AND [TaxRate] IS NULL) OR ([TaxRate] = @Original_TaxRate)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_TaxAmount = 1 AND [TaxAmount] IS NULL) OR ([TaxAmount] = @Original_TaxAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, QUCode, DeliveryDate, TimeOfPayment, Discount, TaxIncluded, InvoiceNumber, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, OptimisticLockField, GCRecord FROM Quotation WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@QUCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="QUCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeOfPayment" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_QUCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QUCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_QUCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="QUCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DeliveryDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TimeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeOfPayment" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxIncluded" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InvoiceNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxRate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="QUCode" DataSetColumn="QUCode" />
              <Mapping SourceColumn="DeliveryDate" DataSetColumn="DeliveryDate" />
              <Mapping SourceColumn="TimeOfPayment" DataSetColumn="TimeOfPayment" />
              <Mapping SourceColumn="Discount" DataSetColumn="Discount" />
              <Mapping SourceColumn="TaxIncluded" DataSetColumn="TaxIncluded" />
              <Mapping SourceColumn="InvoiceNumber" DataSetColumn="InvoiceNumber" />
              <Mapping SourceColumn="TaxRate" DataSetColumn="TaxRate" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="TotalAmount" DataSetColumn="TotalAmount" />
              <Mapping SourceColumn="DiscountAmount" DataSetColumn="DiscountAmount" />
              <Mapping SourceColumn="TaxAmount" DataSetColumn="TaxAmount" />
              <Mapping SourceColumn="Amount" DataSetColumn="Amount" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="QuotationItemsTableAdapter" GeneratorDataComponentClassName="QuotationItemsTableAdapter" Name="QuotationItems" UserDataComponentName="QuotationItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.QuotationItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[QuotationItems] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_UnitPrice = 1 AND [UnitPrice] IS NULL) OR ([UnitPrice] = @Original_UnitPrice)) AND ((@IsNull_Quantity = 1 AND [Quantity] IS NULL) OR ([Quantity] = @Original_Quantity)) AND ((@IsNull_DiscountPercent = 1 AND [DiscountPercent] IS NULL) OR ([DiscountPercent] = @Original_DiscountPercent)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_Quotation = 1 AND [Quotation] IS NULL) OR ([Quotation] = @Original_Quotation)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UnitPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Quotation" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quotation" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Quotation" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Quotation" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[QuotationItems] ([Oid], [Product], [UnitPrice], [Quantity], [DiscountPercent], [TotalAmount], [DiscountAmount], [Amount], [Remarks], [Quotation], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Product, @UnitPrice, @Quantity, @DiscountPercent, @TotalAmount, @DiscountAmount, @Amount, @Remarks, @Quotation, @OptimisticLockField, @GCRecord);
SELECT Oid, Product, UnitPrice, Quantity, DiscountPercent, TotalAmount, DiscountAmount, Amount, Remarks, Quotation, OptimisticLockField, GCRecord FROM QuotationItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Quotation" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Quotation" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Product, UnitPrice, Quantity, DiscountPercent, TotalAmount, DiscountAmount, Amount, Remarks, Quotation, OptimisticLockField, GCRecord FROM dbo.QuotationItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[QuotationItems] SET [Oid] = @Oid, [Product] = @Product, [UnitPrice] = @UnitPrice, [Quantity] = @Quantity, [DiscountPercent] = @DiscountPercent, [TotalAmount] = @TotalAmount, [DiscountAmount] = @DiscountAmount, [Amount] = @Amount, [Remarks] = @Remarks, [Quotation] = @Quotation, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_UnitPrice = 1 AND [UnitPrice] IS NULL) OR ([UnitPrice] = @Original_UnitPrice)) AND ((@IsNull_Quantity = 1 AND [Quantity] IS NULL) OR ([Quantity] = @Original_Quantity)) AND ((@IsNull_DiscountPercent = 1 AND [DiscountPercent] IS NULL) OR ([DiscountPercent] = @Original_DiscountPercent)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_Quotation = 1 AND [Quotation] IS NULL) OR ([Quotation] = @Original_Quotation)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Product, UnitPrice, Quantity, DiscountPercent, TotalAmount, DiscountAmount, Amount, Remarks, Quotation, OptimisticLockField, GCRecord FROM QuotationItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Quotation" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Quotation" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UnitPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Quotation" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quotation" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Quotation" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Quotation" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Product" DataSetColumn="Product" />
              <Mapping SourceColumn="UnitPrice" DataSetColumn="UnitPrice" />
              <Mapping SourceColumn="Quantity" DataSetColumn="Quantity" />
              <Mapping SourceColumn="DiscountPercent" DataSetColumn="DiscountPercent" />
              <Mapping SourceColumn="TotalAmount" DataSetColumn="TotalAmount" />
              <Mapping SourceColumn="DiscountAmount" DataSetColumn="DiscountAmount" />
              <Mapping SourceColumn="Amount" DataSetColumn="Amount" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="Quotation" DataSetColumn="Quotation" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SaleOrderTableAdapter" GeneratorDataComponentClassName="SaleOrderTableAdapter" Name="SaleOrder" UserDataComponentName="SaleOrderTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.SaleOrder" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[SaleOrder] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_SOCode = 1 AND [SOCode] IS NULL) OR ([SOCode] = @Original_SOCode)) AND ((@IsNull_DeliveryDate = 1 AND [DeliveryDate] IS NULL) OR ([DeliveryDate] = @Original_DeliveryDate)) AND ((@IsNull_Customer = 1 AND [Customer] IS NULL) OR ([Customer] = @Original_Customer)) AND ((@IsNull_Employee = 1 AND [Employee] IS NULL) OR ([Employee] = @Original_Employee)) AND ((@IsNull_TimeOfPayment = 1 AND [TimeOfPayment] IS NULL) OR ([TimeOfPayment] = @Original_TimeOfPayment)) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_TaxIncluded = 1 AND [TaxIncluded] IS NULL) OR ([TaxIncluded] = @Original_TaxIncluded)) AND ((@IsNull_InvoiceNumber = 1 AND [InvoiceNumber] IS NULL) OR ([InvoiceNumber] = @Original_InvoiceNumber)) AND ((@IsNull_TaxRate = 1 AND [TaxRate] IS NULL) OR ([TaxRate] = @Original_TaxRate)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_TaxAmount = 1 AND [TaxAmount] IS NULL) OR ([TaxAmount] = @Original_TaxAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_ReceivedCash = 1 AND [ReceivedCash] IS NULL) OR ([ReceivedCash] = @Original_ReceivedCash)) AND ((@IsNull_ReceivedRemitCash = 1 AND [ReceivedRemitCash] IS NULL) OR ([ReceivedRemitCash] = @Original_ReceivedRemitCash)) AND ((@IsNull_ReceivedUnpaid = 1 AND [ReceivedUnpaid] IS NULL) OR ([ReceivedUnpaid] = @Original_ReceivedUnpaid)) AND ((@IsNull_ReceivedCollection = 1 AND [ReceivedCollection] IS NULL) OR ([ReceivedCollection] = @Original_ReceivedCollection)) AND ((@IsNull_GargoFare = 1 AND [GargoFare] IS NULL) OR ([GargoFare] = @Original_GargoFare)) AND ((@IsNull_GargoServiceCharge = 1 AND [GargoServiceCharge] IS NULL) OR ([GargoServiceCharge] = @Original_GargoServiceCharge)) AND ((@IsNull_GargoTeminal = 1 AND [GargoTeminal] IS NULL) OR ([GargoTeminal] = @Original_GargoTeminal)) AND ((@IsNull_SoStatus = 1 AND [SoStatus] IS NULL) OR ([SoStatus] = @Original_SoStatus)) AND ((@IsNull_Telphone = 1 AND [Telphone] IS NULL) OR ([Telphone] = @Original_Telphone)) AND ((@IsNull_DebtAmount = 1 AND [DebtAmount] IS NULL) OR ([DebtAmount] = @Original_DebtAmount)) AND ((@IsNull_CreateUser = 1 AND [CreateUser] IS NULL) OR ([CreateUser] = @Original_CreateUser)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)) AND ((@IsNull_HasPaymentAmount = 1 AND [HasPaymentAmount] IS NULL) OR ([HasPaymentAmount] = @Original_HasPaymentAmount)) AND ((@IsNull_HasReceivedAmount = 1 AND [HasReceivedAmount] IS NULL) OR ([HasReceivedAmount] = @Original_HasReceivedAmount)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SOCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SOCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SOCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SOCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DeliveryDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Customer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Employee" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TimeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeOfPayment" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxIncluded" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InvoiceNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxRate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedCash" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedRemitCash" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedRemitCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedUnpaid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedUnpaid" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedCollection" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedCollection" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoFare" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_GargoFare" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoServiceCharge" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_GargoServiceCharge" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SoStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoStatus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SoStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoStatus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DebtAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CreateUser" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CreateUser" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CreateUser" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CreateUser" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CreateDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CreateDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_CreateDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreateDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_HasPaymentAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_HasPaymentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_HasReceivedAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="HasReceivedAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_HasReceivedAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasReceivedAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[SaleOrder] ([Oid], [SOCode], [DeliveryDate], [Customer], [Employee], [TimeOfPayment], [Discount], [TaxIncluded], [InvoiceNumber], [TaxRate], [Remarks], [TotalAmount], [DiscountAmount], [TaxAmount], [Amount], [ReceivedCash], [ReceivedRemitCash], [ReceivedUnpaid], [ReceivedCollection], [GargoFare], [GargoServiceCharge], [GargoTeminal], [SoStatus], [Telphone], [DebtAmount], [CreateUser], [CreateDate], [OptimisticLockField], [GCRecord], [HasPaymentAmount], [HasReceivedAmount]) VALUES (@Oid, @SOCode, @DeliveryDate, @Customer, @Employee, @TimeOfPayment, @Discount, @TaxIncluded, @InvoiceNumber, @TaxRate, @Remarks, @TotalAmount, @DiscountAmount, @TaxAmount, @Amount, @ReceivedCash, @ReceivedRemitCash, @ReceivedUnpaid, @ReceivedCollection, @GargoFare, @GargoServiceCharge, @GargoTeminal, @SoStatus, @Telphone, @DebtAmount, @CreateUser, @CreateDate, @OptimisticLockField, @GCRecord, @HasPaymentAmount, @HasReceivedAmount);
SELECT Oid, SOCode, DeliveryDate, Customer, Employee, TimeOfPayment, Discount, TaxIncluded, InvoiceNumber, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, ReceivedCash, ReceivedRemitCash, ReceivedUnpaid, ReceivedCollection, GargoFare, GargoServiceCharge, GargoTeminal, SoStatus, Telphone, DebtAmount, CreateUser, CreateDate, OptimisticLockField, GCRecord, HasPaymentAmount, HasReceivedAmount FROM SaleOrder WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SOCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SOCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeOfPayment" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedRemitCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedUnpaid" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedCollection" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@GargoFare" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@GargoServiceCharge" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SoStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CreateUser" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CreateUser" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@CreateDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreateDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@HasPaymentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@HasReceivedAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasReceivedAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, SOCode, DeliveryDate, Customer, Employee, TimeOfPayment, Discount, TaxIncluded, InvoiceNumber, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, ReceivedCash, ReceivedRemitCash, ReceivedUnpaid, ReceivedCollection, GargoFare, GargoServiceCharge, GargoTeminal, SoStatus, Telphone, DebtAmount, CreateUser, CreateDate, OptimisticLockField, GCRecord, HasPaymentAmount, HasReceivedAmount FROM dbo.SaleOrder</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[SaleOrder] SET [Oid] = @Oid, [SOCode] = @SOCode, [DeliveryDate] = @DeliveryDate, [Customer] = @Customer, [Employee] = @Employee, [TimeOfPayment] = @TimeOfPayment, [Discount] = @Discount, [TaxIncluded] = @TaxIncluded, [InvoiceNumber] = @InvoiceNumber, [TaxRate] = @TaxRate, [Remarks] = @Remarks, [TotalAmount] = @TotalAmount, [DiscountAmount] = @DiscountAmount, [TaxAmount] = @TaxAmount, [Amount] = @Amount, [ReceivedCash] = @ReceivedCash, [ReceivedRemitCash] = @ReceivedRemitCash, [ReceivedUnpaid] = @ReceivedUnpaid, [ReceivedCollection] = @ReceivedCollection, [GargoFare] = @GargoFare, [GargoServiceCharge] = @GargoServiceCharge, [GargoTeminal] = @GargoTeminal, [SoStatus] = @SoStatus, [Telphone] = @Telphone, [DebtAmount] = @DebtAmount, [CreateUser] = @CreateUser, [CreateDate] = @CreateDate, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord, [HasPaymentAmount] = @HasPaymentAmount, [HasReceivedAmount] = @HasReceivedAmount WHERE (([Oid] = @Original_Oid) AND ((@IsNull_SOCode = 1 AND [SOCode] IS NULL) OR ([SOCode] = @Original_SOCode)) AND ((@IsNull_DeliveryDate = 1 AND [DeliveryDate] IS NULL) OR ([DeliveryDate] = @Original_DeliveryDate)) AND ((@IsNull_Customer = 1 AND [Customer] IS NULL) OR ([Customer] = @Original_Customer)) AND ((@IsNull_Employee = 1 AND [Employee] IS NULL) OR ([Employee] = @Original_Employee)) AND ((@IsNull_TimeOfPayment = 1 AND [TimeOfPayment] IS NULL) OR ([TimeOfPayment] = @Original_TimeOfPayment)) AND ((@IsNull_Discount = 1 AND [Discount] IS NULL) OR ([Discount] = @Original_Discount)) AND ((@IsNull_TaxIncluded = 1 AND [TaxIncluded] IS NULL) OR ([TaxIncluded] = @Original_TaxIncluded)) AND ((@IsNull_InvoiceNumber = 1 AND [InvoiceNumber] IS NULL) OR ([InvoiceNumber] = @Original_InvoiceNumber)) AND ((@IsNull_TaxRate = 1 AND [TaxRate] IS NULL) OR ([TaxRate] = @Original_TaxRate)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_TaxAmount = 1 AND [TaxAmount] IS NULL) OR ([TaxAmount] = @Original_TaxAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_ReceivedCash = 1 AND [ReceivedCash] IS NULL) OR ([ReceivedCash] = @Original_ReceivedCash)) AND ((@IsNull_ReceivedRemitCash = 1 AND [ReceivedRemitCash] IS NULL) OR ([ReceivedRemitCash] = @Original_ReceivedRemitCash)) AND ((@IsNull_ReceivedUnpaid = 1 AND [ReceivedUnpaid] IS NULL) OR ([ReceivedUnpaid] = @Original_ReceivedUnpaid)) AND ((@IsNull_ReceivedCollection = 1 AND [ReceivedCollection] IS NULL) OR ([ReceivedCollection] = @Original_ReceivedCollection)) AND ((@IsNull_GargoFare = 1 AND [GargoFare] IS NULL) OR ([GargoFare] = @Original_GargoFare)) AND ((@IsNull_GargoServiceCharge = 1 AND [GargoServiceCharge] IS NULL) OR ([GargoServiceCharge] = @Original_GargoServiceCharge)) AND ((@IsNull_GargoTeminal = 1 AND [GargoTeminal] IS NULL) OR ([GargoTeminal] = @Original_GargoTeminal)) AND ((@IsNull_SoStatus = 1 AND [SoStatus] IS NULL) OR ([SoStatus] = @Original_SoStatus)) AND ((@IsNull_Telphone = 1 AND [Telphone] IS NULL) OR ([Telphone] = @Original_Telphone)) AND ((@IsNull_DebtAmount = 1 AND [DebtAmount] IS NULL) OR ([DebtAmount] = @Original_DebtAmount)) AND ((@IsNull_CreateUser = 1 AND [CreateUser] IS NULL) OR ([CreateUser] = @Original_CreateUser)) AND ((@IsNull_CreateDate = 1 AND [CreateDate] IS NULL) OR ([CreateDate] = @Original_CreateDate)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)) AND ((@IsNull_HasPaymentAmount = 1 AND [HasPaymentAmount] IS NULL) OR ([HasPaymentAmount] = @Original_HasPaymentAmount)) AND ((@IsNull_HasReceivedAmount = 1 AND [HasReceivedAmount] IS NULL) OR ([HasReceivedAmount] = @Original_HasReceivedAmount)));
SELECT Oid, SOCode, DeliveryDate, Customer, Employee, TimeOfPayment, Discount, TaxIncluded, InvoiceNumber, TaxRate, Remarks, TotalAmount, DiscountAmount, TaxAmount, Amount, ReceivedCash, ReceivedRemitCash, ReceivedUnpaid, ReceivedCollection, GargoFare, GargoServiceCharge, GargoTeminal, SoStatus, Telphone, DebtAmount, CreateUser, CreateDate, OptimisticLockField, GCRecord, HasPaymentAmount, HasReceivedAmount FROM SaleOrder WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SOCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SOCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeOfPayment" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedRemitCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedUnpaid" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReceivedCollection" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@GargoFare" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@GargoServiceCharge" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SoStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoStatus" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CreateUser" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CreateUser" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@CreateDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreateDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@HasPaymentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@HasReceivedAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasReceivedAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SOCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SOCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SOCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SOCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DeliveryDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DeliveryDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DeliveryDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Customer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Customer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Customer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Employee" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Employee" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Employee" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TimeOfPayment" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeOfPayment" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeOfPayment" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Discount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_Discount" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="Discount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxIncluded" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TaxIncluded" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TaxIncluded" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InvoiceNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_InvoiceNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="InvoiceNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxRate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_TaxRate" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="TaxRate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TaxAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TaxAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TaxAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedCash" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCash" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedRemitCash" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedRemitCash" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedRemitCash" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedUnpaid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedUnpaid" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedUnpaid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ReceivedCollection" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ReceivedCollection" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReceivedCollection" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoFare" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_GargoFare" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoFare" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoServiceCharge" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_GargoServiceCharge" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="GargoServiceCharge" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GargoTeminal" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_GargoTeminal" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="GargoTeminal" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SoStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoStatus" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SoStatus" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoStatus" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DebtAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DebtAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DebtAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CreateUser" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CreateUser" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CreateUser" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CreateUser" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CreateDate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CreateDate" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_CreateDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreateDate" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_HasPaymentAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_HasPaymentAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasPaymentAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_HasReceivedAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="HasReceivedAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_HasReceivedAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HasReceivedAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="SOCode" DataSetColumn="SOCode" />
              <Mapping SourceColumn="DeliveryDate" DataSetColumn="DeliveryDate" />
              <Mapping SourceColumn="Customer" DataSetColumn="Customer" />
              <Mapping SourceColumn="Employee" DataSetColumn="Employee" />
              <Mapping SourceColumn="TimeOfPayment" DataSetColumn="TimeOfPayment" />
              <Mapping SourceColumn="Discount" DataSetColumn="Discount" />
              <Mapping SourceColumn="TaxIncluded" DataSetColumn="TaxIncluded" />
              <Mapping SourceColumn="InvoiceNumber" DataSetColumn="InvoiceNumber" />
              <Mapping SourceColumn="TaxRate" DataSetColumn="TaxRate" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="TotalAmount" DataSetColumn="TotalAmount" />
              <Mapping SourceColumn="DiscountAmount" DataSetColumn="DiscountAmount" />
              <Mapping SourceColumn="TaxAmount" DataSetColumn="TaxAmount" />
              <Mapping SourceColumn="Amount" DataSetColumn="Amount" />
              <Mapping SourceColumn="ReceivedCash" DataSetColumn="ReceivedCash" />
              <Mapping SourceColumn="ReceivedRemitCash" DataSetColumn="ReceivedRemitCash" />
              <Mapping SourceColumn="ReceivedUnpaid" DataSetColumn="ReceivedUnpaid" />
              <Mapping SourceColumn="ReceivedCollection" DataSetColumn="ReceivedCollection" />
              <Mapping SourceColumn="GargoFare" DataSetColumn="GargoFare" />
              <Mapping SourceColumn="GargoServiceCharge" DataSetColumn="GargoServiceCharge" />
              <Mapping SourceColumn="GargoTeminal" DataSetColumn="GargoTeminal" />
              <Mapping SourceColumn="SoStatus" DataSetColumn="SoStatus" />
              <Mapping SourceColumn="Telphone" DataSetColumn="Telphone" />
              <Mapping SourceColumn="DebtAmount" DataSetColumn="DebtAmount" />
              <Mapping SourceColumn="CreateUser" DataSetColumn="CreateUser" />
              <Mapping SourceColumn="CreateDate" DataSetColumn="CreateDate" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
              <Mapping SourceColumn="HasPaymentAmount" DataSetColumn="HasPaymentAmount" />
              <Mapping SourceColumn="HasReceivedAmount" DataSetColumn="HasReceivedAmount" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SaleOrderItemsTableAdapter" GeneratorDataComponentClassName="SaleOrderItemsTableAdapter" Name="SaleOrderItems" UserDataComponentName="SaleOrderItemsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.SaleOrderItems" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[SaleOrderItems] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_UnitPrice = 1 AND [UnitPrice] IS NULL) OR ([UnitPrice] = @Original_UnitPrice)) AND ((@IsNull_Quantity = 1 AND [Quantity] IS NULL) OR ([Quantity] = @Original_Quantity)) AND ((@IsNull_DiscountPercent = 1 AND [DiscountPercent] IS NULL) OR ([DiscountPercent] = @Original_DiscountPercent)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_SaleOrder = 1 AND [SaleOrder] IS NULL) OR ([SaleOrder] = @Original_SaleOrder)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UnitPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SaleOrder" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[SaleOrderItems] ([Oid], [Product], [UnitPrice], [Quantity], [DiscountPercent], [Remarks], [TotalAmount], [DiscountAmount], [Amount], [SaleOrder], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Product, @UnitPrice, @Quantity, @DiscountPercent, @Remarks, @TotalAmount, @DiscountAmount, @Amount, @SaleOrder, @OptimisticLockField, @GCRecord);
SELECT Oid, Product, UnitPrice, Quantity, DiscountPercent, Remarks, TotalAmount, DiscountAmount, Amount, SaleOrder, OptimisticLockField, GCRecord FROM SaleOrderItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Product, UnitPrice, Quantity, DiscountPercent, Remarks, TotalAmount, DiscountAmount, Amount, SaleOrder, OptimisticLockField, GCRecord FROM dbo.SaleOrderItems</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[SaleOrderItems] SET [Oid] = @Oid, [Product] = @Product, [UnitPrice] = @UnitPrice, [Quantity] = @Quantity, [DiscountPercent] = @DiscountPercent, [Remarks] = @Remarks, [TotalAmount] = @TotalAmount, [DiscountAmount] = @DiscountAmount, [Amount] = @Amount, [SaleOrder] = @SaleOrder, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_UnitPrice = 1 AND [UnitPrice] IS NULL) OR ([UnitPrice] = @Original_UnitPrice)) AND ((@IsNull_Quantity = 1 AND [Quantity] IS NULL) OR ([Quantity] = @Original_Quantity)) AND ((@IsNull_DiscountPercent = 1 AND [DiscountPercent] IS NULL) OR ([DiscountPercent] = @Original_DiscountPercent)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_TotalAmount = 1 AND [TotalAmount] IS NULL) OR ([TotalAmount] = @Original_TotalAmount)) AND ((@IsNull_DiscountAmount = 1 AND [DiscountAmount] IS NULL) OR ([DiscountAmount] = @Original_DiscountAmount)) AND ((@IsNull_Amount = 1 AND [Amount] IS NULL) OR ([Amount] = @Original_Amount)) AND ((@IsNull_SaleOrder = 1 AND [SaleOrder] IS NULL) OR ([SaleOrder] = @Original_SaleOrder)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Product, UnitPrice, Quantity, DiscountPercent, Remarks, TotalAmount, DiscountAmount, Amount, SaleOrder, OptimisticLockField, GCRecord FROM SaleOrderItems WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UnitPrice" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_UnitPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="UnitPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Quantity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Quantity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_DiscountPercent" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="DiscountPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TotalAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_TotalAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="TotalAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DiscountAmount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DiscountAmount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DiscountAmount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Amount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Amount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Amount" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SaleOrder" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_SaleOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="SaleOrder" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Product" DataSetColumn="Product" />
              <Mapping SourceColumn="UnitPrice" DataSetColumn="UnitPrice" />
              <Mapping SourceColumn="Quantity" DataSetColumn="Quantity" />
              <Mapping SourceColumn="DiscountPercent" DataSetColumn="DiscountPercent" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="TotalAmount" DataSetColumn="TotalAmount" />
              <Mapping SourceColumn="DiscountAmount" DataSetColumn="DiscountAmount" />
              <Mapping SourceColumn="Amount" DataSetColumn="Amount" />
              <Mapping SourceColumn="SaleOrder" DataSetColumn="SaleOrder" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ShipViaTableAdapter" GeneratorDataComponentClassName="ShipViaTableAdapter" Name="ShipVia" UserDataComponentName="ShipViaTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.ShipVia" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[ShipVia] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_ShipViaName = 1 AND [ShipViaName] IS NULL) OR ([ShipViaName] = @Original_ShipViaName)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_PurchasingOrder = 1 AND [PurchasingOrder] IS NULL) OR ([PurchasingOrder] = @Original_PurchasingOrder)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShipViaName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShipViaName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ShipViaName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShipViaName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingOrder" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[ShipVia] ([Oid], [ShipViaName], [Remarks], [PurchasingOrder], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @ShipViaName, @Remarks, @PurchasingOrder, @OptimisticLockField, @GCRecord);
SELECT Oid, ShipViaName, Remarks, PurchasingOrder, OptimisticLockField, GCRecord FROM ShipVia WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ShipViaName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShipViaName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, ShipViaName, Remarks, PurchasingOrder, OptimisticLockField, GCRecord FROM dbo.ShipVia</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[ShipVia] SET [Oid] = @Oid, [ShipViaName] = @ShipViaName, [Remarks] = @Remarks, [PurchasingOrder] = @PurchasingOrder, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_ShipViaName = 1 AND [ShipViaName] IS NULL) OR ([ShipViaName] = @Original_ShipViaName)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_PurchasingOrder = 1 AND [PurchasingOrder] IS NULL) OR ([PurchasingOrder] = @Original_PurchasingOrder)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, ShipViaName, Remarks, PurchasingOrder, OptimisticLockField, GCRecord FROM ShipVia WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ShipViaName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShipViaName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShipViaName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShipViaName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ShipViaName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShipViaName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingOrder" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingOrder" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingOrder" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="ShipViaName" DataSetColumn="ShipViaName" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="PurchasingOrder" DataSetColumn="PurchasingOrder" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ShopStoreTableAdapter" GeneratorDataComponentClassName="ShopStoreTableAdapter" Name="ShopStore" UserDataComponentName="ShopStoreTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.ShopStore" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[ShopStore] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_ShopStoreName = 1 AND [ShopStoreName] IS NULL) OR ([ShopStoreName] = @Original_ShopStoreName)) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ((@IsNull_Telphone = 1 AND [Telphone] IS NULL) OR ([Telphone] = @Original_Telphone)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_InventoryTransfer = 1 AND [InventoryTransfer] IS NULL) OR ([InventoryTransfer] = @Original_InventoryTransfer)) AND ((@IsNull_InventoryVerification = 1 AND [InventoryVerification] IS NULL) OR ([InventoryVerification] = @Original_InventoryVerification)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShopStoreName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShopStoreName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ShopStoreName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShopStoreName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Address" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryTransfer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryVerification" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[ShopStore] ([Oid], [ShopStoreName], [Address], [Telphone], [Remarks], [InventoryTransfer], [InventoryVerification], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @ShopStoreName, @Address, @Telphone, @Remarks, @InventoryTransfer, @InventoryVerification, @OptimisticLockField, @GCRecord);
SELECT Oid, ShopStoreName, Address, Telphone, Remarks, InventoryTransfer, InventoryVerification, OptimisticLockField, GCRecord FROM ShopStore WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ShopStoreName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShopStoreName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, ShopStoreName, Address, Telphone, Remarks, InventoryTransfer, InventoryVerification, OptimisticLockField, GCRecord FROM dbo.ShopStore</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[ShopStore] SET [Oid] = @Oid, [ShopStoreName] = @ShopStoreName, [Address] = @Address, [Telphone] = @Telphone, [Remarks] = @Remarks, [InventoryTransfer] = @InventoryTransfer, [InventoryVerification] = @InventoryVerification, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_ShopStoreName = 1 AND [ShopStoreName] IS NULL) OR ([ShopStoreName] = @Original_ShopStoreName)) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ((@IsNull_Telphone = 1 AND [Telphone] IS NULL) OR ([Telphone] = @Original_Telphone)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_InventoryTransfer = 1 AND [InventoryTransfer] IS NULL) OR ([InventoryTransfer] = @Original_InventoryTransfer)) AND ((@IsNull_InventoryVerification = 1 AND [InventoryVerification] IS NULL) OR ([InventoryVerification] = @Original_InventoryVerification)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, ShopStoreName, Address, Telphone, Remarks, InventoryTransfer, InventoryVerification, OptimisticLockField, GCRecord FROM ShopStore WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ShopStoreName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShopStoreName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShopStoreName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShopStoreName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ShopStoreName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShopStoreName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Address" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telphone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telphone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telphone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryTransfer" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryTransfer" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryTransfer" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_InventoryVerification" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_InventoryVerification" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="InventoryVerification" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="ShopStoreName" DataSetColumn="ShopStoreName" />
              <Mapping SourceColumn="Address" DataSetColumn="Address" />
              <Mapping SourceColumn="Telphone" DataSetColumn="Telphone" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="InventoryTransfer" DataSetColumn="InventoryTransfer" />
              <Mapping SourceColumn="InventoryVerification" DataSetColumn="InventoryVerification" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SupplierTableAdapter" GeneratorDataComponentClassName="SupplierTableAdapter" Name="Supplier" UserDataComponentName="SupplierTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.Supplier" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Supplier] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_SupplierCode = 1 AND [SupplierCode] IS NULL) OR ([SupplierCode] = @Original_SupplierCode)) AND ((@IsNull_ShortName = 1 AND [ShortName] IS NULL) OR ([ShortName] = @Original_ShortName)) AND ((@IsNull_LongName = 1 AND [LongName] IS NULL) OR ([LongName] = @Original_LongName)) AND ((@IsNull_Telephone = 1 AND [Telephone] IS NULL) OR ([Telephone] = @Original_Telephone)) AND ((@IsNull_Fax = 1 AND [Fax] IS NULL) OR ([Fax] = @Original_Fax)) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ((@IsNull_Zip = 1 AND [Zip] IS NULL) OR ([Zip] = @Original_Zip)) AND ((@IsNull_WebSite = 1 AND [WebSite] IS NULL) OR ([WebSite] = @Original_WebSite)) AND ((@IsNull_AccountName = 1 AND [AccountName] IS NULL) OR ([AccountName] = @Original_AccountName)) AND ((@IsNull_AccountBank = 1 AND [AccountBank] IS NULL) OR ([AccountBank] = @Original_AccountBank)) AND ((@IsNull_BankNumber = 1 AND [BankNumber] IS NULL) OR ([BankNumber] = @Original_BankNumber)) AND ((@IsNull_BillToAddressID = 1 AND [BillToAddressID] IS NULL) OR ([BillToAddressID] = @Original_BillToAddressID)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActive = 1 AND [IsActive] IS NULL) OR ([IsActive] = @Original_IsActive)) AND ((@IsNull_Inquiry = 1 AND [Inquiry] IS NULL) OR ([Inquiry] = @Original_Inquiry)) AND ((@IsNull_PurchasingReturn = 1 AND [PurchasingReturn] IS NULL) OR ([PurchasingReturn] = @Original_PurchasingReturn)) AND ((@IsNull_AccountPayable = 1 AND [AccountPayable] IS NULL) OR ([AccountPayable] = @Original_AccountPayable)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SupplierCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SupplierCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SupplierCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShortName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ShortName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LongName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LongName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telephone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Fax" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Address" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Zip" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Zip" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_WebSite" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_WebSite" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AccountName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountBank" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AccountBank" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_BankNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BankNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_BankNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BankNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_BillToAddressID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BillToAddressID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_BillToAddressID" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BillToAddressID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Inquiry" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Inquiry" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingReturn" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountPayable" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_AccountPayable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Supplier] ([Oid], [SupplierCode], [ShortName], [LongName], [Telephone], [Fax], [Address], [Zip], [WebSite], [AccountName], [AccountBank], [BankNumber], [BillToAddressID], [Remarks], [IsActive], [Inquiry], [PurchasingReturn], [AccountPayable], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @SupplierCode, @ShortName, @LongName, @Telephone, @Fax, @Address, @Zip, @WebSite, @AccountName, @AccountBank, @BankNumber, @BillToAddressID, @Remarks, @IsActive, @Inquiry, @PurchasingReturn, @AccountPayable, @OptimisticLockField, @GCRecord);
SELECT Oid, SupplierCode, ShortName, LongName, Telephone, Fax, Address, Zip, WebSite, AccountName, AccountBank, BankNumber, BillToAddressID, Remarks, IsActive, Inquiry, PurchasingReturn, AccountPayable, OptimisticLockField, GCRecord FROM Supplier WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SupplierCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ShortName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LongName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Zip" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@WebSite" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AccountName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AccountBank" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@BankNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BankNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@BillToAddressID" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BillToAddressID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Inquiry" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@AccountPayable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, SupplierCode, ShortName, LongName, Telephone, Fax, Address, Zip, WebSite, AccountName, AccountBank, BankNumber, BillToAddressID, Remarks, IsActive, Inquiry, PurchasingReturn, AccountPayable, OptimisticLockField, GCRecord FROM dbo.Supplier</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Supplier] SET [Oid] = @Oid, [SupplierCode] = @SupplierCode, [ShortName] = @ShortName, [LongName] = @LongName, [Telephone] = @Telephone, [Fax] = @Fax, [Address] = @Address, [Zip] = @Zip, [WebSite] = @WebSite, [AccountName] = @AccountName, [AccountBank] = @AccountBank, [BankNumber] = @BankNumber, [BillToAddressID] = @BillToAddressID, [Remarks] = @Remarks, [IsActive] = @IsActive, [Inquiry] = @Inquiry, [PurchasingReturn] = @PurchasingReturn, [AccountPayable] = @AccountPayable, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_SupplierCode = 1 AND [SupplierCode] IS NULL) OR ([SupplierCode] = @Original_SupplierCode)) AND ((@IsNull_ShortName = 1 AND [ShortName] IS NULL) OR ([ShortName] = @Original_ShortName)) AND ((@IsNull_LongName = 1 AND [LongName] IS NULL) OR ([LongName] = @Original_LongName)) AND ((@IsNull_Telephone = 1 AND [Telephone] IS NULL) OR ([Telephone] = @Original_Telephone)) AND ((@IsNull_Fax = 1 AND [Fax] IS NULL) OR ([Fax] = @Original_Fax)) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ((@IsNull_Zip = 1 AND [Zip] IS NULL) OR ([Zip] = @Original_Zip)) AND ((@IsNull_WebSite = 1 AND [WebSite] IS NULL) OR ([WebSite] = @Original_WebSite)) AND ((@IsNull_AccountName = 1 AND [AccountName] IS NULL) OR ([AccountName] = @Original_AccountName)) AND ((@IsNull_AccountBank = 1 AND [AccountBank] IS NULL) OR ([AccountBank] = @Original_AccountBank)) AND ((@IsNull_BankNumber = 1 AND [BankNumber] IS NULL) OR ([BankNumber] = @Original_BankNumber)) AND ((@IsNull_BillToAddressID = 1 AND [BillToAddressID] IS NULL) OR ([BillToAddressID] = @Original_BillToAddressID)) AND ((@IsNull_Remarks = 1 AND [Remarks] IS NULL) OR ([Remarks] = @Original_Remarks)) AND ((@IsNull_IsActive = 1 AND [IsActive] IS NULL) OR ([IsActive] = @Original_IsActive)) AND ((@IsNull_Inquiry = 1 AND [Inquiry] IS NULL) OR ([Inquiry] = @Original_Inquiry)) AND ((@IsNull_PurchasingReturn = 1 AND [PurchasingReturn] IS NULL) OR ([PurchasingReturn] = @Original_PurchasingReturn)) AND ((@IsNull_AccountPayable = 1 AND [AccountPayable] IS NULL) OR ([AccountPayable] = @Original_AccountPayable)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, SupplierCode, ShortName, LongName, Telephone, Fax, Address, Zip, WebSite, AccountName, AccountBank, BankNumber, BillToAddressID, Remarks, IsActive, Inquiry, PurchasingReturn, AccountPayable, OptimisticLockField, GCRecord FROM Supplier WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SupplierCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ShortName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LongName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Zip" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@WebSite" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AccountName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@AccountBank" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@BankNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BankNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@BillToAddressID" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BillToAddressID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Inquiry" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@PurchasingReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@AccountPayable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SupplierCode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SupplierCode" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SupplierCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ShortName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ShortName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ShortName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LongName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LongName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LongName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Telephone" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Telephone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Telephone" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Fax" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Fax" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Fax" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Address" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Zip" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Zip" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Zip" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_WebSite" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_WebSite" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="WebSite" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AccountName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountBank" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AccountBank" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AccountBank" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_BankNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BankNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_BankNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BankNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_BillToAddressID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="BillToAddressID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_BillToAddressID" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="BillToAddressID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remarks" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remarks" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remarks" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IsActive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IsActive" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IsActive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Inquiry" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Inquiry" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Inquiry" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PurchasingReturn" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_PurchasingReturn" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="PurchasingReturn" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AccountPayable" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_AccountPayable" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="AccountPayable" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="SupplierCode" DataSetColumn="SupplierCode" />
              <Mapping SourceColumn="ShortName" DataSetColumn="ShortName" />
              <Mapping SourceColumn="LongName" DataSetColumn="LongName" />
              <Mapping SourceColumn="Telephone" DataSetColumn="Telephone" />
              <Mapping SourceColumn="Fax" DataSetColumn="Fax" />
              <Mapping SourceColumn="Address" DataSetColumn="Address" />
              <Mapping SourceColumn="Zip" DataSetColumn="Zip" />
              <Mapping SourceColumn="WebSite" DataSetColumn="WebSite" />
              <Mapping SourceColumn="AccountName" DataSetColumn="AccountName" />
              <Mapping SourceColumn="AccountBank" DataSetColumn="AccountBank" />
              <Mapping SourceColumn="BankNumber" DataSetColumn="BankNumber" />
              <Mapping SourceColumn="BillToAddressID" DataSetColumn="BillToAddressID" />
              <Mapping SourceColumn="Remarks" DataSetColumn="Remarks" />
              <Mapping SourceColumn="IsActive" DataSetColumn="IsActive" />
              <Mapping SourceColumn="Inquiry" DataSetColumn="Inquiry" />
              <Mapping SourceColumn="PurchasingReturn" DataSetColumn="PurchasingReturn" />
              <Mapping SourceColumn="AccountPayable" DataSetColumn="AccountPayable" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="UnitTableAdapter" GeneratorDataComponentClassName="UnitTableAdapter" Name="Unit" UserDataComponentName="UnitTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AscentQiPeiConnectionString (Settings)" DbObjectName="[Ascent.QiPei.Debug].dbo.Unit" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Unit] WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Unit] ([Oid], [Name], [Remark], [Product], [OptimisticLockField], [GCRecord]) VALUES (@Oid, @Name, @Remark, @Product, @OptimisticLockField, @GCRecord);
SELECT Oid, Name, Remark, Product, OptimisticLockField, GCRecord FROM Unit WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Oid, Name, Remark, Product, OptimisticLockField, GCRecord FROM dbo.Unit</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Unit] SET [Oid] = @Oid, [Name] = @Name, [Remark] = @Remark, [Product] = @Product, [OptimisticLockField] = @OptimisticLockField, [GCRecord] = @GCRecord WHERE (([Oid] = @Original_Oid) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Remark = 1 AND [Remark] IS NULL) OR ([Remark] = @Original_Remark)) AND ((@IsNull_Product = 1 AND [Product] IS NULL) OR ([Product] = @Original_Product)) AND ((@IsNull_OptimisticLockField = 1 AND [OptimisticLockField] IS NULL) OR ([OptimisticLockField] = @Original_OptimisticLockField)) AND ((@IsNull_GCRecord = 1 AND [GCRecord] IS NULL) OR ([GCRecord] = @Original_GCRecord)));
SELECT Oid, Name, Remark, Product, OptimisticLockField, GCRecord FROM Unit WHERE (Oid = @Oid)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Oid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Oid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Remark" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Remark" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Remark" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Product" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Product" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Product" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OptimisticLockField" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OptimisticLockField" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GCRecord" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GCRecord" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Oid" DataSetColumn="Oid" />
              <Mapping SourceColumn="Name" DataSetColumn="Name" />
              <Mapping SourceColumn="Remark" DataSetColumn="Remark" />
              <Mapping SourceColumn="Product" DataSetColumn="Product" />
              <Mapping SourceColumn="OptimisticLockField" DataSetColumn="OptimisticLockField" />
              <Mapping SourceColumn="GCRecord" DataSetColumn="GCRecord" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="AscentQiPeiDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="AscentQiPeiDataSet" msprop:Generator_UserDSName="AscentQiPeiDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="AccountPayable" msprop:Generator_TableClassName="AccountPayableDataTable" msprop:Generator_TableVarName="tableAccountPayable" msprop:Generator_TablePropName="AccountPayable" msprop:Generator_RowDeletingName="AccountPayableRowDeleting" msprop:Generator_RowChangingName="AccountPayableRowChanging" msprop:Generator_RowEvHandlerName="AccountPayableRowChangeEventHandler" msprop:Generator_RowDeletedName="AccountPayableRowDeleted" msprop:Generator_UserTableName="AccountPayable" msprop:Generator_RowChangedName="AccountPayableRowChanged" msprop:Generator_RowEvArgName="AccountPayableRowChangeEvent" msprop:Generator_RowClassName="AccountPayableRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="APYCode" msprop:Generator_ColumnVarNameInTable="columnAPYCode" msprop:Generator_ColumnPropNameInRow="APYCode" msprop:Generator_ColumnPropNameInTable="APYCodeColumn" msprop:Generator_UserColumnName="APYCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Supplier" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnSupplier" msprop:Generator_ColumnPropNameInRow="Supplier" msprop:Generator_ColumnPropNameInTable="SupplierColumn" msprop:Generator_UserColumnName="Supplier" type="xs:string" minOccurs="0" />
              <xs:element name="SupplierTelphone" msprop:Generator_ColumnVarNameInTable="columnSupplierTelphone" msprop:Generator_ColumnPropNameInRow="SupplierTelphone" msprop:Generator_ColumnPropNameInTable="SupplierTelphoneColumn" msprop:Generator_UserColumnName="SupplierTelphone" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="GargoTeminal" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnGargoTeminal" msprop:Generator_ColumnPropNameInRow="GargoTeminal" msprop:Generator_ColumnPropNameInTable="GargoTeminalColumn" msprop:Generator_UserColumnName="GargoTeminal" type="xs:string" minOccurs="0" />
              <xs:element name="GargoTeminalTelephone" msprop:Generator_ColumnVarNameInTable="columnGargoTeminalTelephone" msprop:Generator_ColumnPropNameInRow="GargoTeminalTelephone" msprop:Generator_ColumnPropNameInTable="GargoTeminalTelephoneColumn" msprop:Generator_UserColumnName="GargoTeminalTelephone" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PayableAmount" msprop:Generator_ColumnVarNameInTable="columnPayableAmount" msprop:Generator_ColumnPropNameInRow="PayableAmount" msprop:Generator_ColumnPropNameInTable="PayableAmountColumn" msprop:Generator_UserColumnName="PayableAmount" type="xs:double" minOccurs="0" />
              <xs:element name="PayabledAmount" msprop:Generator_ColumnVarNameInTable="columnPayabledAmount" msprop:Generator_ColumnPropNameInRow="PayabledAmount" msprop:Generator_ColumnPropNameInTable="PayabledAmountColumn" msprop:Generator_UserColumnName="PayabledAmount" type="xs:double" minOccurs="0" />
              <xs:element name="DebtAmount" msprop:Generator_ColumnVarNameInTable="columnDebtAmount" msprop:Generator_ColumnPropNameInRow="DebtAmount" msprop:Generator_ColumnPropNameInTable="DebtAmountColumn" msprop:Generator_UserColumnName="DebtAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="AccountPayableItems" msprop:Generator_TableClassName="AccountPayableItemsDataTable" msprop:Generator_TableVarName="tableAccountPayableItems" msprop:Generator_TablePropName="AccountPayableItems" msprop:Generator_RowDeletingName="AccountPayableItemsRowDeleting" msprop:Generator_RowChangingName="AccountPayableItemsRowChanging" msprop:Generator_RowEvHandlerName="AccountPayableItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="AccountPayableItemsRowDeleted" msprop:Generator_UserTableName="AccountPayableItems" msprop:Generator_RowChangedName="AccountPayableItemsRowChanged" msprop:Generator_RowEvArgName="AccountPayableItemsRowChangeEvent" msprop:Generator_RowClassName="AccountPayableItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="PayableDate" msprop:Generator_ColumnVarNameInTable="columnPayableDate" msprop:Generator_ColumnPropNameInRow="PayableDate" msprop:Generator_ColumnPropNameInTable="PayableDateColumn" msprop:Generator_UserColumnName="PayableDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="ModeOfPayment" msprop:Generator_ColumnVarNameInTable="columnModeOfPayment" msprop:Generator_ColumnPropNameInRow="ModeOfPayment" msprop:Generator_ColumnPropNameInTable="ModeOfPaymentColumn" msprop:Generator_UserColumnName="ModeOfPayment" type="xs:int" minOccurs="0" />
              <xs:element name="CurrentAmount" msprop:Generator_ColumnVarNameInTable="columnCurrentAmount" msprop:Generator_ColumnPropNameInRow="CurrentAmount" msprop:Generator_ColumnPropNameInTable="CurrentAmountColumn" msprop:Generator_UserColumnName="CurrentAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Summary" msprop:Generator_ColumnVarNameInTable="columnSummary" msprop:Generator_ColumnPropNameInRow="Summary" msprop:Generator_ColumnPropNameInTable="SummaryColumn" msprop:Generator_UserColumnName="Summary" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PayableNumber" msprop:Generator_ColumnVarNameInTable="columnPayableNumber" msprop:Generator_ColumnPropNameInRow="PayableNumber" msprop:Generator_ColumnPropNameInTable="PayableNumberColumn" msprop:Generator_UserColumnName="PayableNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AssociationNubmers" msprop:Generator_ColumnVarNameInTable="columnAssociationNubmers" msprop:Generator_ColumnPropNameInRow="AssociationNubmers" msprop:Generator_ColumnPropNameInTable="AssociationNubmersColumn" msprop:Generator_UserColumnName="AssociationNubmers" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AccountPayable" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnAccountPayable" msprop:Generator_ColumnPropNameInRow="AccountPayable" msprop:Generator_ColumnPropNameInTable="AccountPayableColumn" msprop:Generator_UserColumnName="AccountPayable" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="AccountReceivable" msprop:Generator_TableClassName="AccountReceivableDataTable" msprop:Generator_TableVarName="tableAccountReceivable" msprop:Generator_TablePropName="AccountReceivable" msprop:Generator_RowDeletingName="AccountReceivableRowDeleting" msprop:Generator_RowChangingName="AccountReceivableRowChanging" msprop:Generator_RowEvHandlerName="AccountReceivableRowChangeEventHandler" msprop:Generator_RowDeletedName="AccountReceivableRowDeleted" msprop:Generator_UserTableName="AccountReceivable" msprop:Generator_RowChangedName="AccountReceivableRowChanged" msprop:Generator_RowEvArgName="AccountReceivableRowChangeEvent" msprop:Generator_RowClassName="AccountReceivableRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="ARCCode" msprop:Generator_ColumnVarNameInTable="columnARCCode" msprop:Generator_ColumnPropNameInRow="ARCCode" msprop:Generator_ColumnPropNameInTable="ARCCodeColumn" msprop:Generator_UserColumnName="ARCCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Customer" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnCustomer" msprop:Generator_ColumnPropNameInRow="Customer" msprop:Generator_ColumnPropNameInTable="CustomerColumn" msprop:Generator_UserColumnName="Customer" type="xs:string" minOccurs="0" />
              <xs:element name="CustomerTelphone" msprop:Generator_ColumnVarNameInTable="columnCustomerTelphone" msprop:Generator_ColumnPropNameInRow="CustomerTelphone" msprop:Generator_ColumnPropNameInTable="CustomerTelphoneColumn" msprop:Generator_UserColumnName="CustomerTelphone" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="GargoTeminal" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnGargoTeminal" msprop:Generator_ColumnPropNameInRow="GargoTeminal" msprop:Generator_ColumnPropNameInTable="GargoTeminalColumn" msprop:Generator_UserColumnName="GargoTeminal" type="xs:string" minOccurs="0" />
              <xs:element name="GargoTeminalTelephone" msprop:Generator_ColumnVarNameInTable="columnGargoTeminalTelephone" msprop:Generator_ColumnPropNameInRow="GargoTeminalTelephone" msprop:Generator_ColumnPropNameInTable="GargoTeminalTelephoneColumn" msprop:Generator_UserColumnName="GargoTeminalTelephone" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ReceivableAmount" msprop:Generator_ColumnVarNameInTable="columnReceivableAmount" msprop:Generator_ColumnPropNameInRow="ReceivableAmount" msprop:Generator_ColumnPropNameInTable="ReceivableAmountColumn" msprop:Generator_UserColumnName="ReceivableAmount" type="xs:double" minOccurs="0" />
              <xs:element name="ReceivabledAmount" msprop:Generator_ColumnVarNameInTable="columnReceivabledAmount" msprop:Generator_ColumnPropNameInRow="ReceivabledAmount" msprop:Generator_ColumnPropNameInTable="ReceivabledAmountColumn" msprop:Generator_UserColumnName="ReceivabledAmount" type="xs:double" minOccurs="0" />
              <xs:element name="DebtAmount" msprop:Generator_ColumnVarNameInTable="columnDebtAmount" msprop:Generator_ColumnPropNameInRow="DebtAmount" msprop:Generator_ColumnPropNameInTable="DebtAmountColumn" msprop:Generator_UserColumnName="DebtAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="AccountReceivableItems" msprop:Generator_TableClassName="AccountReceivableItemsDataTable" msprop:Generator_TableVarName="tableAccountReceivableItems" msprop:Generator_TablePropName="AccountReceivableItems" msprop:Generator_RowDeletingName="AccountReceivableItemsRowDeleting" msprop:Generator_RowChangingName="AccountReceivableItemsRowChanging" msprop:Generator_RowEvHandlerName="AccountReceivableItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="AccountReceivableItemsRowDeleted" msprop:Generator_UserTableName="AccountReceivableItems" msprop:Generator_RowChangedName="AccountReceivableItemsRowChanged" msprop:Generator_RowEvArgName="AccountReceivableItemsRowChangeEvent" msprop:Generator_RowClassName="AccountReceivableItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="ReceivableDate" msprop:Generator_ColumnVarNameInTable="columnReceivableDate" msprop:Generator_ColumnPropNameInRow="ReceivableDate" msprop:Generator_ColumnPropNameInTable="ReceivableDateColumn" msprop:Generator_UserColumnName="ReceivableDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="ModeOfPayment" msprop:Generator_ColumnVarNameInTable="columnModeOfPayment" msprop:Generator_ColumnPropNameInRow="ModeOfPayment" msprop:Generator_ColumnPropNameInTable="ModeOfPaymentColumn" msprop:Generator_UserColumnName="ModeOfPayment" type="xs:int" minOccurs="0" />
              <xs:element name="CurrentAmount" msprop:Generator_ColumnVarNameInTable="columnCurrentAmount" msprop:Generator_ColumnPropNameInRow="CurrentAmount" msprop:Generator_ColumnPropNameInTable="CurrentAmountColumn" msprop:Generator_UserColumnName="CurrentAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Summary" msprop:Generator_ColumnVarNameInTable="columnSummary" msprop:Generator_ColumnPropNameInRow="Summary" msprop:Generator_ColumnPropNameInTable="SummaryColumn" msprop:Generator_UserColumnName="Summary" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ReceivableNumber" msprop:Generator_ColumnVarNameInTable="columnReceivableNumber" msprop:Generator_ColumnPropNameInRow="ReceivableNumber" msprop:Generator_ColumnPropNameInTable="ReceivableNumberColumn" msprop:Generator_UserColumnName="ReceivableNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AssociationNubmers" msprop:Generator_ColumnVarNameInTable="columnAssociationNubmers" msprop:Generator_ColumnPropNameInRow="AssociationNubmers" msprop:Generator_ColumnPropNameInTable="AssociationNubmersColumn" msprop:Generator_UserColumnName="AssociationNubmers" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AccountReceivable" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnAccountReceivable" msprop:Generator_ColumnPropNameInRow="AccountReceivable" msprop:Generator_ColumnPropNameInTable="AccountReceivableColumn" msprop:Generator_UserColumnName="AccountReceivable" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="CashAccount" msprop:Generator_TableClassName="CashAccountDataTable" msprop:Generator_TableVarName="tableCashAccount" msprop:Generator_TablePropName="CashAccount" msprop:Generator_RowDeletingName="CashAccountRowDeleting" msprop:Generator_RowChangingName="CashAccountRowChanging" msprop:Generator_RowEvHandlerName="CashAccountRowChangeEventHandler" msprop:Generator_RowDeletedName="CashAccountRowDeleted" msprop:Generator_UserTableName="CashAccount" msprop:Generator_RowChangedName="CashAccountRowChanged" msprop:Generator_RowEvArgName="CashAccountRowChangeEvent" msprop:Generator_RowClassName="CashAccountRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="CATCode" msprop:Generator_ColumnVarNameInTable="columnCATCode" msprop:Generator_ColumnPropNameInRow="CATCode" msprop:Generator_ColumnPropNameInTable="CATCodeColumn" msprop:Generator_UserColumnName="CATCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Date" msprop:Generator_ColumnVarNameInTable="columnDate" msprop:Generator_ColumnPropNameInRow="Date" msprop:Generator_ColumnPropNameInTable="DateColumn" msprop:Generator_UserColumnName="Date" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CustomOrSupplier" msprop:Generator_ColumnVarNameInTable="columnCustomOrSupplier" msprop:Generator_ColumnPropNameInRow="CustomOrSupplier" msprop:Generator_ColumnPropNameInTable="CustomOrSupplierColumn" msprop:Generator_UserColumnName="CustomOrSupplier" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Summary" msprop:Generator_ColumnVarNameInTable="columnSummary" msprop:Generator_ColumnPropNameInRow="Summary" msprop:Generator_ColumnPropNameInTable="SummaryColumn" msprop:Generator_UserColumnName="Summary" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IncomeAmount" msprop:Generator_ColumnVarNameInTable="columnIncomeAmount" msprop:Generator_ColumnPropNameInRow="IncomeAmount" msprop:Generator_ColumnPropNameInTable="IncomeAmountColumn" msprop:Generator_UserColumnName="IncomeAmount" type="xs:double" minOccurs="0" />
              <xs:element name="PayAmount" msprop:Generator_ColumnVarNameInTable="columnPayAmount" msprop:Generator_ColumnPropNameInRow="PayAmount" msprop:Generator_ColumnPropNameInTable="PayAmountColumn" msprop:Generator_UserColumnName="PayAmount" type="xs:double" minOccurs="0" />
              <xs:element name="AssociationNubmers" msprop:Generator_ColumnVarNameInTable="columnAssociationNubmers" msprop:Generator_ColumnPropNameInRow="AssociationNubmers" msprop:Generator_ColumnPropNameInTable="AssociationNubmersColumn" msprop:Generator_UserColumnName="AssociationNubmers" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Contact" msprop:Generator_TableClassName="ContactDataTable" msprop:Generator_TableVarName="tableContact" msprop:Generator_TablePropName="Contact" msprop:Generator_RowDeletingName="ContactRowDeleting" msprop:Generator_RowChangingName="ContactRowChanging" msprop:Generator_RowEvHandlerName="ContactRowChangeEventHandler" msprop:Generator_RowDeletedName="ContactRowDeleted" msprop:Generator_UserTableName="Contact" msprop:Generator_RowChangedName="ContactRowChanged" msprop:Generator_RowEvArgName="ContactRowChangeEvent" msprop:Generator_RowClassName="ContactRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Sex" msprop:Generator_ColumnVarNameInTable="columnSex" msprop:Generator_ColumnPropNameInRow="Sex" msprop:Generator_ColumnPropNameInTable="SexColumn" msprop:Generator_UserColumnName="Sex" type="xs:int" minOccurs="0" />
              <xs:element name="Mobile" msprop:Generator_ColumnVarNameInTable="columnMobile" msprop:Generator_ColumnPropNameInRow="Mobile" msprop:Generator_ColumnPropNameInTable="MobileColumn" msprop:Generator_UserColumnName="Mobile" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Telphone" msprop:Generator_ColumnVarNameInTable="columnTelphone" msprop:Generator_ColumnPropNameInRow="Telphone" msprop:Generator_ColumnPropNameInTable="TelphoneColumn" msprop:Generator_UserColumnName="Telphone" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Fax" msprop:Generator_ColumnVarNameInTable="columnFax" msprop:Generator_ColumnPropNameInRow="Fax" msprop:Generator_ColumnPropNameInTable="FaxColumn" msprop:Generator_UserColumnName="Fax" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="EMail" msprop:Generator_ColumnVarNameInTable="columnEMail" msprop:Generator_ColumnPropNameInRow="EMail" msprop:Generator_ColumnPropNameInTable="EMailColumn" msprop:Generator_UserColumnName="EMail" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsActive" msprop:Generator_ColumnVarNameInTable="columnIsActive" msprop:Generator_ColumnPropNameInRow="IsActive" msprop:Generator_ColumnPropNameInTable="IsActiveColumn" msprop:Generator_UserColumnName="IsActive" type="xs:boolean" minOccurs="0" />
              <xs:element name="Supplier" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnSupplier" msprop:Generator_ColumnPropNameInRow="Supplier" msprop:Generator_ColumnPropNameInTable="SupplierColumn" msprop:Generator_UserColumnName="Supplier" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Customer" msprop:Generator_TableClassName="CustomerDataTable" msprop:Generator_TableVarName="tableCustomer" msprop:Generator_TablePropName="Customer" msprop:Generator_RowDeletingName="CustomerRowDeleting" msprop:Generator_RowChangingName="CustomerRowChanging" msprop:Generator_RowEvHandlerName="CustomerRowChangeEventHandler" msprop:Generator_RowDeletedName="CustomerRowDeleted" msprop:Generator_UserTableName="Customer" msprop:Generator_RowChangedName="CustomerRowChanged" msprop:Generator_RowEvArgName="CustomerRowChangeEvent" msprop:Generator_RowClassName="CustomerRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="CustomerCode" msprop:Generator_ColumnVarNameInTable="columnCustomerCode" msprop:Generator_ColumnPropNameInRow="CustomerCode" msprop:Generator_ColumnPropNameInTable="CustomerCodeColumn" msprop:Generator_UserColumnName="CustomerCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ShortName" msprop:Generator_ColumnVarNameInTable="columnShortName" msprop:Generator_ColumnPropNameInRow="ShortName" msprop:Generator_ColumnPropNameInTable="ShortNameColumn" msprop:Generator_UserColumnName="ShortName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LongName" msprop:Generator_ColumnVarNameInTable="columnLongName" msprop:Generator_ColumnPropNameInRow="LongName" msprop:Generator_ColumnPropNameInTable="LongNameColumn" msprop:Generator_UserColumnName="LongName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CustomerType" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnCustomerType" msprop:Generator_ColumnPropNameInRow="CustomerType" msprop:Generator_ColumnPropNameInTable="CustomerTypeColumn" msprop:Generator_UserColumnName="CustomerType" type="xs:string" minOccurs="0" />
              <xs:element name="Telphone" msprop:Generator_ColumnVarNameInTable="columnTelphone" msprop:Generator_ColumnPropNameInRow="Telphone" msprop:Generator_ColumnPropNameInTable="TelphoneColumn" msprop:Generator_UserColumnName="Telphone" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Fax" msprop:Generator_ColumnVarNameInTable="columnFax" msprop:Generator_ColumnPropNameInRow="Fax" msprop:Generator_ColumnPropNameInTable="FaxColumn" msprop:Generator_UserColumnName="Fax" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Address" msprop:Generator_ColumnVarNameInTable="columnAddress" msprop:Generator_ColumnPropNameInRow="Address" msprop:Generator_ColumnPropNameInTable="AddressColumn" msprop:Generator_UserColumnName="Address" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Zip" msprop:Generator_ColumnVarNameInTable="columnZip" msprop:Generator_ColumnPropNameInRow="Zip" msprop:Generator_ColumnPropNameInTable="ZipColumn" msprop:Generator_UserColumnName="Zip" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="WebSite" msprop:Generator_ColumnVarNameInTable="columnWebSite" msprop:Generator_ColumnPropNameInRow="WebSite" msprop:Generator_ColumnPropNameInTable="WebSiteColumn" msprop:Generator_UserColumnName="WebSite" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" msprop:Generator_UserColumnName="Discount" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaxDebt" msprop:Generator_ColumnVarNameInTable="columnMaxDebt" msprop:Generator_ColumnPropNameInRow="MaxDebt" msprop:Generator_ColumnPropNameInTable="MaxDebtColumn" msprop:Generator_UserColumnName="MaxDebt" type="xs:short" minOccurs="0" />
              <xs:element name="AccountName" msprop:Generator_ColumnVarNameInTable="columnAccountName" msprop:Generator_ColumnPropNameInRow="AccountName" msprop:Generator_ColumnPropNameInTable="AccountNameColumn" msprop:Generator_UserColumnName="AccountName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AccountBank" msprop:Generator_ColumnVarNameInTable="columnAccountBank" msprop:Generator_ColumnPropNameInRow="AccountBank" msprop:Generator_ColumnPropNameInTable="AccountBankColumn" msprop:Generator_UserColumnName="AccountBank" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AccountNumber" msprop:Generator_ColumnVarNameInTable="columnAccountNumber" msprop:Generator_ColumnPropNameInRow="AccountNumber" msprop:Generator_ColumnPropNameInTable="AccountNumberColumn" msprop:Generator_UserColumnName="AccountNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DefaultGargoTeminal" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnDefaultGargoTeminal" msprop:Generator_ColumnPropNameInRow="DefaultGargoTeminal" msprop:Generator_ColumnPropNameInTable="DefaultGargoTeminalColumn" msprop:Generator_UserColumnName="DefaultGargoTeminal" type="xs:string" minOccurs="0" />
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsActiva" msprop:Generator_ColumnVarNameInTable="columnIsActiva" msprop:Generator_ColumnPropNameInRow="IsActiva" msprop:Generator_ColumnPropNameInTable="IsActivaColumn" msprop:Generator_UserColumnName="IsActiva" type="xs:boolean" minOccurs="0" />
              <xs:element name="CustomerReturn" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnCustomerReturn" msprop:Generator_ColumnPropNameInRow="CustomerReturn" msprop:Generator_ColumnPropNameInTable="CustomerReturnColumn" msprop:Generator_UserColumnName="CustomerReturn" type="xs:string" minOccurs="0" />
              <xs:element name="AccountReceivable" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnAccountReceivable" msprop:Generator_ColumnPropNameInRow="AccountReceivable" msprop:Generator_ColumnPropNameInTable="AccountReceivableColumn" msprop:Generator_UserColumnName="AccountReceivable" type="xs:string" minOccurs="0" />
              <xs:element name="SaleOrder" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnSaleOrder" msprop:Generator_ColumnPropNameInRow="SaleOrder" msprop:Generator_ColumnPropNameInTable="SaleOrderColumn" msprop:Generator_UserColumnName="SaleOrder" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="CustomerCategory" msprop:Generator_TableClassName="CustomerCategoryDataTable" msprop:Generator_TableVarName="tableCustomerCategory" msprop:Generator_TablePropName="CustomerCategory" msprop:Generator_RowDeletingName="CustomerCategoryRowDeleting" msprop:Generator_RowChangingName="CustomerCategoryRowChanging" msprop:Generator_RowEvHandlerName="CustomerCategoryRowChangeEventHandler" msprop:Generator_RowDeletedName="CustomerCategoryRowDeleted" msprop:Generator_UserTableName="CustomerCategory" msprop:Generator_RowChangedName="CustomerCategoryRowChanged" msprop:Generator_RowEvArgName="CustomerCategoryRowChangeEvent" msprop:Generator_RowClassName="CustomerCategoryRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PriceType" msprop:Generator_ColumnVarNameInTable="columnPriceType" msprop:Generator_ColumnPropNameInRow="PriceType" msprop:Generator_ColumnPropNameInTable="PriceTypeColumn" msprop:Generator_UserColumnName="PriceType" type="xs:int" minOccurs="0" />
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="CustomerReturn" msprop:Generator_TableClassName="CustomerReturnDataTable" msprop:Generator_TableVarName="tableCustomerReturn" msprop:Generator_TablePropName="CustomerReturn" msprop:Generator_RowDeletingName="CustomerReturnRowDeleting" msprop:Generator_RowChangingName="CustomerReturnRowChanging" msprop:Generator_RowEvHandlerName="CustomerReturnRowChangeEventHandler" msprop:Generator_RowDeletedName="CustomerReturnRowDeleted" msprop:Generator_UserTableName="CustomerReturn" msprop:Generator_RowChangedName="CustomerReturnRowChanged" msprop:Generator_RowEvArgName="CustomerReturnRowChangeEvent" msprop:Generator_RowClassName="CustomerReturnRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="CRDCode" msprop:Generator_ColumnVarNameInTable="columnCRDCode" msprop:Generator_ColumnPropNameInRow="CRDCode" msprop:Generator_ColumnPropNameInTable="CRDCodeColumn" msprop:Generator_UserColumnName="CRDCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Customer" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnCustomer" msprop:Generator_ColumnPropNameInRow="Customer" msprop:Generator_ColumnPropNameInTable="CustomerColumn" msprop:Generator_UserColumnName="Customer" type="xs:string" minOccurs="0" />
              <xs:element name="SONumber" msprop:Generator_ColumnVarNameInTable="columnSONumber" msprop:Generator_ColumnPropNameInRow="SONumber" msprop:Generator_ColumnPropNameInTable="SONumberColumn" msprop:Generator_UserColumnName="SONumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ReturnsDate" msprop:Generator_ColumnVarNameInTable="columnReturnsDate" msprop:Generator_ColumnPropNameInRow="ReturnsDate" msprop:Generator_ColumnPropNameInTable="ReturnsDateColumn" msprop:Generator_UserColumnName="ReturnsDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="CustomerReturnItems" msprop:Generator_TableClassName="CustomerReturnItemsDataTable" msprop:Generator_TableVarName="tableCustomerReturnItems" msprop:Generator_TablePropName="CustomerReturnItems" msprop:Generator_RowDeletingName="CustomerReturnItemsRowDeleting" msprop:Generator_RowChangingName="CustomerReturnItemsRowChanging" msprop:Generator_RowEvHandlerName="CustomerReturnItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="CustomerReturnItemsRowDeleted" msprop:Generator_UserTableName="CustomerReturnItems" msprop:Generator_RowChangedName="CustomerReturnItemsRowChanged" msprop:Generator_RowEvArgName="CustomerReturnItemsRowChangeEvent" msprop:Generator_RowClassName="CustomerReturnItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Product" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product" type="xs:string" minOccurs="0" />
              <xs:element name="AvailableQuantity" msprop:Generator_ColumnVarNameInTable="columnAvailableQuantity" msprop:Generator_ColumnPropNameInRow="AvailableQuantity" msprop:Generator_ColumnPropNameInTable="AvailableQuantityColumn" msprop:Generator_UserColumnName="AvailableQuantity" type="xs:int" minOccurs="0" />
              <xs:element name="WasteQuantify" msprop:Generator_ColumnVarNameInTable="columnWasteQuantify" msprop:Generator_ColumnPropNameInRow="WasteQuantify" msprop:Generator_ColumnPropNameInTable="WasteQuantifyColumn" msprop:Generator_UserColumnName="WasteQuantify" type="xs:double" minOccurs="0" />
              <xs:element name="ReturnPrice" msprop:Generator_ColumnVarNameInTable="columnReturnPrice" msprop:Generator_ColumnPropNameInRow="ReturnPrice" msprop:Generator_ColumnPropNameInTable="ReturnPriceColumn" msprop:Generator_UserColumnName="ReturnPrice" type="xs:double" minOccurs="0" />
              <xs:element name="ReturnsCause" msprop:Generator_ColumnVarNameInTable="columnReturnsCause" msprop:Generator_ColumnPropNameInRow="ReturnsCause" msprop:Generator_ColumnPropNameInTable="ReturnsCauseColumn" msprop:Generator_UserColumnName="ReturnsCause" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CustomerReturn" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnCustomerReturn" msprop:Generator_ColumnPropNameInRow="CustomerReturn" msprop:Generator_ColumnPropNameInTable="CustomerReturnColumn" msprop:Generator_UserColumnName="CustomerReturn" type="xs:string" minOccurs="0" />
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Employee" msprop:Generator_TableClassName="EmployeeDataTable" msprop:Generator_TableVarName="tableEmployee" msprop:Generator_TablePropName="Employee" msprop:Generator_RowDeletingName="EmployeeRowDeleting" msprop:Generator_RowChangingName="EmployeeRowChanging" msprop:Generator_RowEvHandlerName="EmployeeRowChangeEventHandler" msprop:Generator_RowDeletedName="EmployeeRowDeleted" msprop:Generator_UserTableName="Employee" msprop:Generator_RowChangedName="EmployeeRowChanged" msprop:Generator_RowEvArgName="EmployeeRowChangeEvent" msprop:Generator_RowClassName="EmployeeRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Sex" msprop:Generator_ColumnVarNameInTable="columnSex" msprop:Generator_ColumnPropNameInRow="Sex" msprop:Generator_ColumnPropNameInTable="SexColumn" msprop:Generator_UserColumnName="Sex" type="xs:int" minOccurs="0" />
              <xs:element name="Position" msprop:Generator_ColumnVarNameInTable="columnPosition" msprop:Generator_ColumnPropNameInRow="Position" msprop:Generator_ColumnPropNameInTable="PositionColumn" msprop:Generator_UserColumnName="Position" type="xs:int" minOccurs="0" />
              <xs:element name="DatesEmployed" msprop:Generator_ColumnVarNameInTable="columnDatesEmployed" msprop:Generator_ColumnPropNameInRow="DatesEmployed" msprop:Generator_ColumnPropNameInTable="DatesEmployedColumn" msprop:Generator_UserColumnName="DatesEmployed" type="xs:dateTime" minOccurs="0" />
              <xs:element name="IDCard" msprop:Generator_ColumnVarNameInTable="columnIDCard" msprop:Generator_ColumnPropNameInRow="IDCard" msprop:Generator_ColumnPropNameInTable="IDCardColumn" msprop:Generator_UserColumnName="IDCard" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Mobile" msprop:Generator_ColumnVarNameInTable="columnMobile" msprop:Generator_ColumnPropNameInRow="Mobile" msprop:Generator_ColumnPropNameInTable="MobileColumn" msprop:Generator_UserColumnName="Mobile" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Telephone" msprop:Generator_ColumnVarNameInTable="columnTelephone" msprop:Generator_ColumnPropNameInRow="Telephone" msprop:Generator_ColumnPropNameInTable="TelephoneColumn" msprop:Generator_UserColumnName="Telephone" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="EMAIL" msprop:Generator_ColumnVarNameInTable="columnEMAIL" msprop:Generator_ColumnPropNameInRow="EMAIL" msprop:Generator_ColumnPropNameInTable="EMAILColumn" msprop:Generator_UserColumnName="EMAIL" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsActive" msprop:Generator_ColumnVarNameInTable="columnIsActive" msprop:Generator_ColumnPropNameInRow="IsActive" msprop:Generator_ColumnPropNameInTable="IsActiveColumn" msprop:Generator_UserColumnName="IsActive" type="xs:boolean" minOccurs="0" />
              <xs:element name="ShopStore" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnShopStore" msprop:Generator_ColumnPropNameInRow="ShopStore" msprop:Generator_ColumnPropNameInTable="ShopStoreColumn" msprop:Generator_UserColumnName="ShopStore" type="xs:string" minOccurs="0" />
              <xs:element name="SaleOrder" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnSaleOrder" msprop:Generator_ColumnPropNameInRow="SaleOrder" msprop:Generator_ColumnPropNameInTable="SaleOrderColumn" msprop:Generator_UserColumnName="SaleOrder" type="xs:string" minOccurs="0" />
              <xs:element name="InventoryTransfer" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInventoryTransfer" msprop:Generator_ColumnPropNameInRow="InventoryTransfer" msprop:Generator_ColumnPropNameInTable="InventoryTransferColumn" msprop:Generator_UserColumnName="InventoryTransfer" type="xs:string" minOccurs="0" />
              <xs:element name="InventoryAdjustment" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInventoryAdjustment" msprop:Generator_ColumnPropNameInRow="InventoryAdjustment" msprop:Generator_ColumnPropNameInTable="InventoryAdjustmentColumn" msprop:Generator_UserColumnName="InventoryAdjustment" type="xs:string" minOccurs="0" />
              <xs:element name="InventoryVerification" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInventoryVerification" msprop:Generator_ColumnPropNameInRow="InventoryVerification" msprop:Generator_ColumnPropNameInTable="InventoryVerificationColumn" msprop:Generator_UserColumnName="InventoryVerification" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="GargoTeminal" msprop:Generator_TableClassName="GargoTeminalDataTable" msprop:Generator_TableVarName="tableGargoTeminal" msprop:Generator_TablePropName="GargoTeminal" msprop:Generator_RowDeletingName="GargoTeminalRowDeleting" msprop:Generator_RowChangingName="GargoTeminalRowChanging" msprop:Generator_RowEvHandlerName="GargoTeminalRowChangeEventHandler" msprop:Generator_RowDeletedName="GargoTeminalRowDeleted" msprop:Generator_UserTableName="GargoTeminal" msprop:Generator_RowChangedName="GargoTeminalRowChanged" msprop:Generator_RowEvArgName="GargoTeminalRowChangeEvent" msprop:Generator_RowClassName="GargoTeminalRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="GargoName" msprop:Generator_ColumnVarNameInTable="columnGargoName" msprop:Generator_ColumnPropNameInRow="GargoName" msprop:Generator_ColumnPropNameInTable="GargoNameColumn" msprop:Generator_UserColumnName="GargoName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Commission" msprop:Generator_ColumnVarNameInTable="columnCommission" msprop:Generator_ColumnPropNameInRow="Commission" msprop:Generator_ColumnPropNameInTable="CommissionColumn" msprop:Generator_UserColumnName="Commission" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsActiva" msprop:Generator_ColumnVarNameInTable="columnIsActiva" msprop:Generator_ColumnPropNameInRow="IsActiva" msprop:Generator_ColumnPropNameInTable="IsActivaColumn" msprop:Generator_UserColumnName="IsActiva" type="xs:boolean" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="InOutAccount" msprop:Generator_TableClassName="InOutAccountDataTable" msprop:Generator_TableVarName="tableInOutAccount" msprop:Generator_TablePropName="InOutAccount" msprop:Generator_RowDeletingName="InOutAccountRowDeleting" msprop:Generator_RowChangingName="InOutAccountRowChanging" msprop:Generator_RowEvHandlerName="InOutAccountRowChangeEventHandler" msprop:Generator_RowDeletedName="InOutAccountRowDeleted" msprop:Generator_UserTableName="InOutAccount" msprop:Generator_RowChangedName="InOutAccountRowChanged" msprop:Generator_RowEvArgName="InOutAccountRowChangeEvent" msprop:Generator_RowClassName="InOutAccountRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Date" msprop:Generator_ColumnVarNameInTable="columnDate" msprop:Generator_ColumnPropNameInRow="Date" msprop:Generator_ColumnPropNameInTable="DateColumn" msprop:Generator_UserColumnName="Date" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="InOutAccountType" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInOutAccountType" msprop:Generator_ColumnPropNameInRow="InOutAccountType" msprop:Generator_ColumnPropNameInTable="InOutAccountTypeColumn" msprop:Generator_UserColumnName="InOutAccountType" type="xs:string" minOccurs="0" />
              <xs:element name="Summary" msprop:Generator_ColumnVarNameInTable="columnSummary" msprop:Generator_ColumnPropNameInRow="Summary" msprop:Generator_ColumnPropNameInTable="SummaryColumn" msprop:Generator_UserColumnName="Summary" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Income" msprop:Generator_ColumnVarNameInTable="columnIncome" msprop:Generator_ColumnPropNameInRow="Income" msprop:Generator_ColumnPropNameInTable="IncomeColumn" msprop:Generator_UserColumnName="Income" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Pay" msprop:Generator_ColumnVarNameInTable="columnPay" msprop:Generator_ColumnPropNameInRow="Pay" msprop:Generator_ColumnPropNameInTable="PayColumn" msprop:Generator_UserColumnName="Pay" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="InOutAccountType" msprop:Generator_TableClassName="InOutAccountTypeDataTable" msprop:Generator_TableVarName="tableInOutAccountType" msprop:Generator_TablePropName="InOutAccountType" msprop:Generator_RowDeletingName="InOutAccountTypeRowDeleting" msprop:Generator_RowChangingName="InOutAccountTypeRowChanging" msprop:Generator_RowEvHandlerName="InOutAccountTypeRowChangeEventHandler" msprop:Generator_RowDeletedName="InOutAccountTypeRowDeleted" msprop:Generator_UserTableName="InOutAccountType" msprop:Generator_RowChangedName="InOutAccountTypeRowChanged" msprop:Generator_RowEvArgName="InOutAccountTypeRowChangeEvent" msprop:Generator_RowClassName="InOutAccountTypeRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="InOutAccount" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInOutAccount" msprop:Generator_ColumnPropNameInRow="InOutAccount" msprop:Generator_ColumnPropNameInTable="InOutAccountColumn" msprop:Generator_UserColumnName="InOutAccount" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Inquiry" msprop:Generator_TableClassName="InquiryDataTable" msprop:Generator_TableVarName="tableInquiry" msprop:Generator_TablePropName="Inquiry" msprop:Generator_RowDeletingName="InquiryRowDeleting" msprop:Generator_RowChangingName="InquiryRowChanging" msprop:Generator_RowEvHandlerName="InquiryRowChangeEventHandler" msprop:Generator_RowDeletedName="InquiryRowDeleted" msprop:Generator_UserTableName="Inquiry" msprop:Generator_RowChangedName="InquiryRowChanged" msprop:Generator_RowEvArgName="InquiryRowChangeEvent" msprop:Generator_RowClassName="InquiryRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="POCode" msprop:Generator_ColumnVarNameInTable="columnPOCode" msprop:Generator_ColumnPropNameInRow="POCode" msprop:Generator_ColumnPropNameInTable="POCodeColumn" msprop:Generator_UserColumnName="POCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Supplier" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnSupplier" msprop:Generator_ColumnPropNameInRow="Supplier" msprop:Generator_ColumnPropNameInTable="SupplierColumn" msprop:Generator_UserColumnName="Supplier" type="xs:string" minOccurs="0" />
              <xs:element name="PurchasePerson" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnPurchasePerson" msprop:Generator_ColumnPropNameInRow="PurchasePerson" msprop:Generator_ColumnPropNameInTable="PurchasePersonColumn" msprop:Generator_UserColumnName="PurchasePerson" type="xs:string" minOccurs="0" />
              <xs:element name="RequiredDeliveryDate" msprop:Generator_ColumnVarNameInTable="columnRequiredDeliveryDate" msprop:Generator_ColumnPropNameInRow="RequiredDeliveryDate" msprop:Generator_ColumnPropNameInTable="RequiredDeliveryDateColumn" msprop:Generator_UserColumnName="RequiredDeliveryDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" msprop:Generator_UserColumnName="Discount" type="xs:short" minOccurs="0" />
              <xs:element name="ModeOfPayment" msprop:Generator_ColumnVarNameInTable="columnModeOfPayment" msprop:Generator_ColumnPropNameInRow="ModeOfPayment" msprop:Generator_ColumnPropNameInTable="ModeOfPaymentColumn" msprop:Generator_UserColumnName="ModeOfPayment" type="xs:int" minOccurs="0" />
              <xs:element name="TaxIncluded" msprop:Generator_ColumnVarNameInTable="columnTaxIncluded" msprop:Generator_ColumnPropNameInRow="TaxIncluded" msprop:Generator_ColumnPropNameInTable="TaxIncludedColumn" msprop:Generator_UserColumnName="TaxIncluded" type="xs:boolean" minOccurs="0" />
              <xs:element name="InvoiceNumber" msprop:Generator_ColumnVarNameInTable="columnInvoiceNumber" msprop:Generator_ColumnPropNameInRow="InvoiceNumber" msprop:Generator_ColumnPropNameInTable="InvoiceNumberColumn" msprop:Generator_UserColumnName="InvoiceNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TaxRate" msprop:Generator_ColumnVarNameInTable="columnTaxRate" msprop:Generator_ColumnPropNameInRow="TaxRate" msprop:Generator_ColumnPropNameInTable="TaxRateColumn" msprop:Generator_UserColumnName="TaxRate" type="xs:short" minOccurs="0" />
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TotalAmount" msprop:Generator_ColumnVarNameInTable="columnTotalAmount" msprop:Generator_ColumnPropNameInRow="TotalAmount" msprop:Generator_ColumnPropNameInTable="TotalAmountColumn" msprop:Generator_UserColumnName="TotalAmount" type="xs:double" minOccurs="0" />
              <xs:element name="DiscountAmount" msprop:Generator_ColumnVarNameInTable="columnDiscountAmount" msprop:Generator_ColumnPropNameInRow="DiscountAmount" msprop:Generator_ColumnPropNameInTable="DiscountAmountColumn" msprop:Generator_UserColumnName="DiscountAmount" type="xs:double" minOccurs="0" />
              <xs:element name="TaxAmount" msprop:Generator_ColumnVarNameInTable="columnTaxAmount" msprop:Generator_ColumnPropNameInRow="TaxAmount" msprop:Generator_ColumnPropNameInTable="TaxAmountColumn" msprop:Generator_UserColumnName="TaxAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Amount" msprop:Generator_ColumnVarNameInTable="columnAmount" msprop:Generator_ColumnPropNameInRow="Amount" msprop:Generator_ColumnPropNameInTable="AmountColumn" msprop:Generator_UserColumnName="Amount" type="xs:double" minOccurs="0" />
              <xs:element name="ShipVia" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnShipVia" msprop:Generator_ColumnPropNameInRow="ShipVia" msprop:Generator_ColumnPropNameInTable="ShipViaColumn" msprop:Generator_UserColumnName="ShipVia" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="InquiryItems" msprop:Generator_TableClassName="InquiryItemsDataTable" msprop:Generator_TableVarName="tableInquiryItems" msprop:Generator_TablePropName="InquiryItems" msprop:Generator_RowDeletingName="InquiryItemsRowDeleting" msprop:Generator_RowChangingName="InquiryItemsRowChanging" msprop:Generator_RowEvHandlerName="InquiryItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="InquiryItemsRowDeleted" msprop:Generator_UserTableName="InquiryItems" msprop:Generator_RowChangedName="InquiryItemsRowChanged" msprop:Generator_RowEvArgName="InquiryItemsRowChangeEvent" msprop:Generator_RowClassName="InquiryItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Product" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product" type="xs:string" minOccurs="0" />
              <xs:element name="DiscountPercent" msprop:Generator_ColumnVarNameInTable="columnDiscountPercent" msprop:Generator_ColumnPropNameInRow="DiscountPercent" msprop:Generator_ColumnPropNameInTable="DiscountPercentColumn" msprop:Generator_UserColumnName="DiscountPercent" type="xs:short" minOccurs="0" />
              <xs:element name="UnitPrice" msprop:Generator_ColumnVarNameInTable="columnUnitPrice" msprop:Generator_ColumnPropNameInRow="UnitPrice" msprop:Generator_ColumnPropNameInTable="UnitPriceColumn" msprop:Generator_UserColumnName="UnitPrice" type="xs:double" minOccurs="0" />
              <xs:element name="Quantity" msprop:Generator_ColumnVarNameInTable="columnQuantity" msprop:Generator_ColumnPropNameInRow="Quantity" msprop:Generator_ColumnPropNameInTable="QuantityColumn" msprop:Generator_UserColumnName="Quantity" type="xs:double" minOccurs="0" />
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TotalAmount" msprop:Generator_ColumnVarNameInTable="columnTotalAmount" msprop:Generator_ColumnPropNameInRow="TotalAmount" msprop:Generator_ColumnPropNameInTable="TotalAmountColumn" msprop:Generator_UserColumnName="TotalAmount" type="xs:double" minOccurs="0" />
              <xs:element name="DiscountAmount" msprop:Generator_ColumnVarNameInTable="columnDiscountAmount" msprop:Generator_ColumnPropNameInRow="DiscountAmount" msprop:Generator_ColumnPropNameInTable="DiscountAmountColumn" msprop:Generator_UserColumnName="DiscountAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Amount" msprop:Generator_ColumnVarNameInTable="columnAmount" msprop:Generator_ColumnPropNameInRow="Amount" msprop:Generator_ColumnPropNameInTable="AmountColumn" msprop:Generator_UserColumnName="Amount" type="xs:double" minOccurs="0" />
              <xs:element name="Inquiry" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInquiry" msprop:Generator_ColumnPropNameInRow="Inquiry" msprop:Generator_ColumnPropNameInTable="InquiryColumn" msprop:Generator_UserColumnName="Inquiry" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="InventoryAdjustment" msprop:Generator_TableClassName="InventoryAdjustmentDataTable" msprop:Generator_TableVarName="tableInventoryAdjustment" msprop:Generator_TablePropName="InventoryAdjustment" msprop:Generator_RowDeletingName="InventoryAdjustmentRowDeleting" msprop:Generator_RowChangingName="InventoryAdjustmentRowChanging" msprop:Generator_RowEvHandlerName="InventoryAdjustmentRowChangeEventHandler" msprop:Generator_RowDeletedName="InventoryAdjustmentRowDeleted" msprop:Generator_UserTableName="InventoryAdjustment" msprop:Generator_RowChangedName="InventoryAdjustmentRowChanged" msprop:Generator_RowEvArgName="InventoryAdjustmentRowChangeEvent" msprop:Generator_RowClassName="InventoryAdjustmentRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="FADCode" msprop:Generator_ColumnVarNameInTable="columnFADCode" msprop:Generator_ColumnPropNameInRow="FADCode" msprop:Generator_ColumnPropNameInTable="FADCodeColumn" msprop:Generator_UserColumnName="FADCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="InventoryAdustmentType" msprop:Generator_ColumnVarNameInTable="columnInventoryAdustmentType" msprop:Generator_ColumnPropNameInRow="InventoryAdustmentType" msprop:Generator_ColumnPropNameInTable="InventoryAdustmentTypeColumn" msprop:Generator_UserColumnName="InventoryAdustmentType" type="xs:int" minOccurs="0" />
              <xs:element name="Employee" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnEmployee" msprop:Generator_ColumnPropNameInRow="Employee" msprop:Generator_ColumnPropNameInTable="EmployeeColumn" msprop:Generator_UserColumnName="Employee" type="xs:string" minOccurs="0" />
              <xs:element name="TransferringDate" msprop:Generator_ColumnVarNameInTable="columnTransferringDate" msprop:Generator_ColumnPropNameInRow="TransferringDate" msprop:Generator_ColumnPropNameInTable="TransferringDateColumn" msprop:Generator_UserColumnName="TransferringDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="TransferringReason" msprop:Generator_ColumnVarNameInTable="columnTransferringReason" msprop:Generator_ColumnPropNameInRow="TransferringReason" msprop:Generator_ColumnPropNameInTable="TransferringReasonColumn" msprop:Generator_UserColumnName="TransferringReason" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="InventoryAdjustmentItems" msprop:Generator_TableClassName="InventoryAdjustmentItemsDataTable" msprop:Generator_TableVarName="tableInventoryAdjustmentItems" msprop:Generator_TablePropName="InventoryAdjustmentItems" msprop:Generator_RowDeletingName="InventoryAdjustmentItemsRowDeleting" msprop:Generator_RowChangingName="InventoryAdjustmentItemsRowChanging" msprop:Generator_RowEvHandlerName="InventoryAdjustmentItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="InventoryAdjustmentItemsRowDeleted" msprop:Generator_UserTableName="InventoryAdjustmentItems" msprop:Generator_RowChangedName="InventoryAdjustmentItemsRowChanged" msprop:Generator_RowEvArgName="InventoryAdjustmentItemsRowChangeEvent" msprop:Generator_RowClassName="InventoryAdjustmentItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="InventoryAdjustment" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInventoryAdjustment" msprop:Generator_ColumnPropNameInRow="InventoryAdjustment" msprop:Generator_ColumnPropNameInTable="InventoryAdjustmentColumn" msprop:Generator_UserColumnName="InventoryAdjustment" type="xs:string" minOccurs="0" />
              <xs:element name="Product" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product" type="xs:string" minOccurs="0" />
              <xs:element name="IssueQuantity" msprop:Generator_ColumnVarNameInTable="columnIssueQuantity" msprop:Generator_ColumnPropNameInRow="IssueQuantity" msprop:Generator_ColumnPropNameInTable="IssueQuantityColumn" msprop:Generator_UserColumnName="IssueQuantity" type="xs:int" minOccurs="0" />
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="InventoryTransfer" msprop:Generator_TableClassName="InventoryTransferDataTable" msprop:Generator_TableVarName="tableInventoryTransfer" msprop:Generator_TablePropName="InventoryTransfer" msprop:Generator_RowDeletingName="InventoryTransferRowDeleting" msprop:Generator_RowChangingName="InventoryTransferRowChanging" msprop:Generator_RowEvHandlerName="InventoryTransferRowChangeEventHandler" msprop:Generator_RowDeletedName="InventoryTransferRowDeleted" msprop:Generator_UserTableName="InventoryTransfer" msprop:Generator_RowChangedName="InventoryTransferRowChanged" msprop:Generator_RowEvArgName="InventoryTransferRowChangeEvent" msprop:Generator_RowClassName="InventoryTransferRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="FTRCode" msprop:Generator_ColumnVarNameInTable="columnFTRCode" msprop:Generator_ColumnPropNameInRow="FTRCode" msprop:Generator_ColumnPropNameInTable="FTRCodeColumn" msprop:Generator_UserColumnName="FTRCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ExportShopStore" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnExportShopStore" msprop:Generator_ColumnPropNameInRow="ExportShopStore" msprop:Generator_ColumnPropNameInTable="ExportShopStoreColumn" msprop:Generator_UserColumnName="ExportShopStore" type="xs:string" minOccurs="0" />
              <xs:element name="ImportShopStore" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnImportShopStore" msprop:Generator_ColumnPropNameInRow="ImportShopStore" msprop:Generator_ColumnPropNameInTable="ImportShopStoreColumn" msprop:Generator_UserColumnName="ImportShopStore" type="xs:string" minOccurs="0" />
              <xs:element name="Employee" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnEmployee" msprop:Generator_ColumnPropNameInRow="Employee" msprop:Generator_ColumnPropNameInTable="EmployeeColumn" msprop:Generator_UserColumnName="Employee" type="xs:string" minOccurs="0" />
              <xs:element name="TransferringDate" msprop:Generator_ColumnVarNameInTable="columnTransferringDate" msprop:Generator_ColumnPropNameInRow="TransferringDate" msprop:Generator_ColumnPropNameInTable="TransferringDateColumn" msprop:Generator_UserColumnName="TransferringDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="TransferringReason" msprop:Generator_ColumnVarNameInTable="columnTransferringReason" msprop:Generator_ColumnPropNameInRow="TransferringReason" msprop:Generator_ColumnPropNameInTable="TransferringReasonColumn" msprop:Generator_UserColumnName="TransferringReason" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="InventoryTransferItems" msprop:Generator_TableClassName="InventoryTransferItemsDataTable" msprop:Generator_TableVarName="tableInventoryTransferItems" msprop:Generator_TablePropName="InventoryTransferItems" msprop:Generator_RowDeletingName="InventoryTransferItemsRowDeleting" msprop:Generator_RowChangingName="InventoryTransferItemsRowChanging" msprop:Generator_RowEvHandlerName="InventoryTransferItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="InventoryTransferItemsRowDeleted" msprop:Generator_UserTableName="InventoryTransferItems" msprop:Generator_RowChangedName="InventoryTransferItemsRowChanged" msprop:Generator_RowEvArgName="InventoryTransferItemsRowChangeEvent" msprop:Generator_RowClassName="InventoryTransferItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="InventoryTransfer" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInventoryTransfer" msprop:Generator_ColumnPropNameInRow="InventoryTransfer" msprop:Generator_ColumnPropNameInTable="InventoryTransferColumn" msprop:Generator_UserColumnName="InventoryTransfer" type="xs:string" minOccurs="0" />
              <xs:element name="Product" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product" type="xs:string" minOccurs="0" />
              <xs:element name="IssueQuantity" msprop:Generator_ColumnVarNameInTable="columnIssueQuantity" msprop:Generator_ColumnPropNameInRow="IssueQuantity" msprop:Generator_ColumnPropNameInTable="IssueQuantityColumn" msprop:Generator_UserColumnName="IssueQuantity" type="xs:int" minOccurs="0" />
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="InventoryVerification" msprop:Generator_TableClassName="InventoryVerificationDataTable" msprop:Generator_TableVarName="tableInventoryVerification" msprop:Generator_TablePropName="InventoryVerification" msprop:Generator_RowDeletingName="InventoryVerificationRowDeleting" msprop:Generator_RowChangingName="InventoryVerificationRowChanging" msprop:Generator_RowEvHandlerName="InventoryVerificationRowChangeEventHandler" msprop:Generator_RowDeletedName="InventoryVerificationRowDeleted" msprop:Generator_UserTableName="InventoryVerification" msprop:Generator_RowChangedName="InventoryVerificationRowChanged" msprop:Generator_RowEvArgName="InventoryVerificationRowChangeEvent" msprop:Generator_RowClassName="InventoryVerificationRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="FVFCode" msprop:Generator_ColumnVarNameInTable="columnFVFCode" msprop:Generator_ColumnPropNameInRow="FVFCode" msprop:Generator_ColumnPropNameInTable="FVFCodeColumn" msprop:Generator_UserColumnName="FVFCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ShopStore" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnShopStore" msprop:Generator_ColumnPropNameInRow="ShopStore" msprop:Generator_ColumnPropNameInTable="ShopStoreColumn" msprop:Generator_UserColumnName="ShopStore" type="xs:string" minOccurs="0" />
              <xs:element name="InventoryDate" msprop:Generator_ColumnVarNameInTable="columnInventoryDate" msprop:Generator_ColumnPropNameInRow="InventoryDate" msprop:Generator_ColumnPropNameInTable="InventoryDateColumn" msprop:Generator_UserColumnName="InventoryDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Employee" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnEmployee" msprop:Generator_ColumnPropNameInRow="Employee" msprop:Generator_ColumnPropNameInTable="EmployeeColumn" msprop:Generator_UserColumnName="Employee" type="xs:string" minOccurs="0" />
              <xs:element name="IsUpdateFlag" msprop:Generator_ColumnVarNameInTable="columnIsUpdateFlag" msprop:Generator_ColumnPropNameInRow="IsUpdateFlag" msprop:Generator_ColumnPropNameInTable="IsUpdateFlagColumn" msprop:Generator_UserColumnName="IsUpdateFlag" type="xs:boolean" minOccurs="0" />
              <xs:element name="UpdateDate" msprop:Generator_ColumnVarNameInTable="columnUpdateDate" msprop:Generator_ColumnPropNameInRow="UpdateDate" msprop:Generator_ColumnPropNameInTable="UpdateDateColumn" msprop:Generator_UserColumnName="UpdateDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="UpdateUser" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnUpdateUser" msprop:Generator_ColumnPropNameInRow="UpdateUser" msprop:Generator_ColumnPropNameInTable="UpdateUserColumn" msprop:Generator_UserColumnName="UpdateUser" type="xs:string" minOccurs="0" />
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="InventoryVerificationItems" msprop:Generator_TableClassName="InventoryVerificationItemsDataTable" msprop:Generator_TableVarName="tableInventoryVerificationItems" msprop:Generator_TablePropName="InventoryVerificationItems" msprop:Generator_RowDeletingName="InventoryVerificationItemsRowDeleting" msprop:Generator_RowChangingName="InventoryVerificationItemsRowChanging" msprop:Generator_RowEvHandlerName="InventoryVerificationItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="InventoryVerificationItemsRowDeleted" msprop:Generator_UserTableName="InventoryVerificationItems" msprop:Generator_RowChangedName="InventoryVerificationItemsRowChanged" msprop:Generator_RowEvArgName="InventoryVerificationItemsRowChangeEvent" msprop:Generator_RowClassName="InventoryVerificationItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="InventoryVerification" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInventoryVerification" msprop:Generator_ColumnPropNameInRow="InventoryVerification" msprop:Generator_ColumnPropNameInTable="InventoryVerificationColumn" msprop:Generator_UserColumnName="InventoryVerification" type="xs:string" minOccurs="0" />
              <xs:element name="Product" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product" type="xs:string" minOccurs="0" />
              <xs:element name="InventoryQty" msprop:Generator_ColumnVarNameInTable="columnInventoryQty" msprop:Generator_ColumnPropNameInRow="InventoryQty" msprop:Generator_ColumnPropNameInTable="InventoryQtyColumn" msprop:Generator_UserColumnName="InventoryQty" type="xs:int" minOccurs="0" />
              <xs:element name="RealQty" msprop:Generator_ColumnVarNameInTable="columnRealQty" msprop:Generator_ColumnPropNameInRow="RealQty" msprop:Generator_ColumnPropNameInTable="RealQtyColumn" msprop:Generator_UserColumnName="RealQty" type="xs:int" minOccurs="0" />
              <xs:element name="DiffQty" msprop:Generator_ColumnVarNameInTable="columnDiffQty" msprop:Generator_ColumnPropNameInRow="DiffQty" msprop:Generator_ColumnPropNameInTable="DiffQtyColumn" msprop:Generator_UserColumnName="DiffQty" type="xs:int" minOccurs="0" />
              <xs:element name="DiffReason" msprop:Generator_ColumnVarNameInTable="columnDiffReason" msprop:Generator_ColumnPropNameInRow="DiffReason" msprop:Generator_ColumnPropNameInTable="DiffReasonColumn" msprop:Generator_UserColumnName="DiffReason" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Option" msprop:Generator_TableClassName="OptionDataTable" msprop:Generator_TableVarName="tableOption" msprop:Generator_TablePropName="Option" msprop:Generator_RowDeletingName="OptionRowDeleting" msprop:Generator_RowChangingName="OptionRowChanging" msprop:Generator_RowEvHandlerName="OptionRowChangeEventHandler" msprop:Generator_RowDeletedName="OptionRowDeleted" msprop:Generator_UserTableName="Option" msprop:Generator_RowChangedName="OptionRowChanged" msprop:Generator_RowEvArgName="OptionRowChangeEvent" msprop:Generator_RowClassName="OptionRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="DefaultLastPrice" msprop:Generator_ColumnVarNameInTable="columnDefaultLastPrice" msprop:Generator_ColumnPropNameInRow="DefaultLastPrice" msprop:Generator_ColumnPropNameInTable="DefaultLastPriceColumn" msprop:Generator_UserColumnName="DefaultLastPrice" type="xs:boolean" minOccurs="0" />
              <xs:element name="IsNegativeStocks" msprop:Generator_ColumnVarNameInTable="columnIsNegativeStocks" msprop:Generator_ColumnPropNameInRow="IsNegativeStocks" msprop:Generator_ColumnPropNameInTable="IsNegativeStocksColumn" msprop:Generator_UserColumnName="IsNegativeStocks" type="xs:boolean" minOccurs="0" />
              <xs:element name="MaxNegativePeriod" msprop:Generator_ColumnVarNameInTable="columnMaxNegativePeriod" msprop:Generator_ColumnPropNameInRow="MaxNegativePeriod" msprop:Generator_ColumnPropNameInTable="MaxNegativePeriodColumn" msprop:Generator_UserColumnName="MaxNegativePeriod" type="xs:int" minOccurs="0" />
              <xs:element name="TaxRate" msprop:Generator_ColumnVarNameInTable="columnTaxRate" msprop:Generator_ColumnPropNameInRow="TaxRate" msprop:Generator_ColumnPropNameInTable="TaxRateColumn" msprop:Generator_UserColumnName="TaxRate" type="xs:short" minOccurs="0" />
              <xs:element name="LockPOPeriod" msprop:Generator_ColumnVarNameInTable="columnLockPOPeriod" msprop:Generator_ColumnPropNameInRow="LockPOPeriod" msprop:Generator_ColumnPropNameInTable="LockPOPeriodColumn" msprop:Generator_UserColumnName="LockPOPeriod" type="xs:int" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Product" msprop:Generator_TableClassName="ProductDataTable" msprop:Generator_TableVarName="tableProduct" msprop:Generator_TablePropName="Product" msprop:Generator_RowDeletingName="ProductRowDeleting" msprop:Generator_RowChangingName="ProductRowChanging" msprop:Generator_RowEvHandlerName="ProductRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductRowDeleted" msprop:Generator_UserTableName="Product" msprop:Generator_RowChangedName="ProductRowChanged" msprop:Generator_RowEvArgName="ProductRowChangeEvent" msprop:Generator_RowClassName="ProductRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="ProductCode" msprop:Generator_ColumnVarNameInTable="columnProductCode" msprop:Generator_ColumnPropNameInRow="ProductCode" msprop:Generator_ColumnPropNameInTable="ProductCodeColumn" msprop:Generator_UserColumnName="ProductCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ProductName" msprop:Generator_ColumnVarNameInTable="columnProductName" msprop:Generator_ColumnPropNameInRow="ProductName" msprop:Generator_ColumnPropNameInTable="ProductNameColumn" msprop:Generator_UserColumnName="ProductName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ProductAlias" msprop:Generator_ColumnVarNameInTable="columnProductAlias" msprop:Generator_ColumnPropNameInRow="ProductAlias" msprop:Generator_ColumnPropNameInTable="ProductAliasColumn" msprop:Generator_UserColumnName="ProductAlias" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ProductSpecification" msprop:Generator_ColumnVarNameInTable="columnProductSpecification" msprop:Generator_ColumnPropNameInRow="ProductSpecification" msprop:Generator_ColumnPropNameInTable="ProductSpecificationColumn" msprop:Generator_UserColumnName="ProductSpecification" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ProductDescription" msprop:Generator_ColumnVarNameInTable="columnProductDescription" msprop:Generator_ColumnPropNameInRow="ProductDescription" msprop:Generator_ColumnPropNameInTable="ProductDescriptionColumn" msprop:Generator_UserColumnName="ProductDescription" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ProductCategory" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProductCategory" msprop:Generator_ColumnPropNameInRow="ProductCategory" msprop:Generator_ColumnPropNameInTable="ProductCategoryColumn" msprop:Generator_UserColumnName="ProductCategory" type="xs:string" minOccurs="0" />
              <xs:element name="Unit" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnUnit" msprop:Generator_ColumnPropNameInRow="Unit" msprop:Generator_ColumnPropNameInTable="UnitColumn" msprop:Generator_UserColumnName="Unit" type="xs:string" minOccurs="0" />
              <xs:element name="SafeStocks" msprop:Generator_ColumnVarNameInTable="columnSafeStocks" msprop:Generator_ColumnPropNameInRow="SafeStocks" msprop:Generator_ColumnPropNameInTable="SafeStocksColumn" msprop:Generator_UserColumnName="SafeStocks" type="xs:int" minOccurs="0" />
              <xs:element name="MaxStocks" msprop:Generator_ColumnVarNameInTable="columnMaxStocks" msprop:Generator_ColumnPropNameInRow="MaxStocks" msprop:Generator_ColumnPropNameInTable="MaxStocksColumn" msprop:Generator_UserColumnName="MaxStocks" type="xs:int" minOccurs="0" />
              <xs:element name="DirectImportPrices" msprop:Generator_ColumnVarNameInTable="columnDirectImportPrices" msprop:Generator_ColumnPropNameInRow="DirectImportPrices" msprop:Generator_ColumnPropNameInTable="DirectImportPricesColumn" msprop:Generator_UserColumnName="DirectImportPrices" type="xs:double" minOccurs="0" />
              <xs:element name="BatchPrice" msprop:Generator_ColumnVarNameInTable="columnBatchPrice" msprop:Generator_ColumnPropNameInRow="BatchPrice" msprop:Generator_ColumnPropNameInTable="BatchPriceColumn" msprop:Generator_UserColumnName="BatchPrice" type="xs:double" minOccurs="0" />
              <xs:element name="RetailPrice" msprop:Generator_ColumnVarNameInTable="columnRetailPrice" msprop:Generator_ColumnPropNameInRow="RetailPrice" msprop:Generator_ColumnPropNameInTable="RetailPriceColumn" msprop:Generator_UserColumnName="RetailPrice" type="xs:double" minOccurs="0" />
              <xs:element name="LowestPrice" msprop:Generator_ColumnVarNameInTable="columnLowestPrice" msprop:Generator_ColumnPropNameInRow="LowestPrice" msprop:Generator_ColumnPropNameInTable="LowestPriceColumn" msprop:Generator_UserColumnName="LowestPrice" type="xs:double" minOccurs="0" />
              <xs:element name="PreferentialPrice" msprop:Generator_ColumnVarNameInTable="columnPreferentialPrice" msprop:Generator_ColumnPropNameInRow="PreferentialPrice" msprop:Generator_ColumnPropNameInTable="PreferentialPriceColumn" msprop:Generator_UserColumnName="PreferentialPrice" type="xs:double" minOccurs="0" />
              <xs:element name="AvailableQuantity" msprop:Generator_ColumnVarNameInTable="columnAvailableQuantity" msprop:Generator_ColumnPropNameInRow="AvailableQuantity" msprop:Generator_ColumnPropNameInTable="AvailableQuantityColumn" msprop:Generator_UserColumnName="AvailableQuantity" type="xs:int" minOccurs="0" />
              <xs:element name="WasteQuantity" msprop:Generator_ColumnVarNameInTable="columnWasteQuantity" msprop:Generator_ColumnPropNameInRow="WasteQuantity" msprop:Generator_ColumnPropNameInTable="WasteQuantityColumn" msprop:Generator_UserColumnName="WasteQuantity" type="xs:int" minOccurs="0" />
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsActive" msprop:Generator_ColumnVarNameInTable="columnIsActive" msprop:Generator_ColumnPropNameInRow="IsActive" msprop:Generator_ColumnPropNameInTable="IsActiveColumn" msprop:Generator_UserColumnName="IsActive" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Attachment" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnAttachment" msprop:Generator_ColumnPropNameInRow="Attachment" msprop:Generator_ColumnPropNameInTable="AttachmentColumn" msprop:Generator_UserColumnName="Attachment" type="xs:string" minOccurs="0" />
              <xs:element name="PurchasingOrderItems" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnPurchasingOrderItems" msprop:Generator_ColumnPropNameInRow="PurchasingOrderItems" msprop:Generator_ColumnPropNameInTable="PurchasingOrderItemsColumn" msprop:Generator_UserColumnName="PurchasingOrderItems" type="xs:string" minOccurs="0" />
              <xs:element name="SaleOrderItems" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnSaleOrderItems" msprop:Generator_ColumnPropNameInRow="SaleOrderItems" msprop:Generator_ColumnPropNameInTable="SaleOrderItemsColumn" msprop:Generator_UserColumnName="SaleOrderItems" type="xs:string" minOccurs="0" />
              <xs:element name="InquiryItems" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInquiryItems" msprop:Generator_ColumnPropNameInRow="InquiryItems" msprop:Generator_ColumnPropNameInTable="InquiryItemsColumn" msprop:Generator_UserColumnName="InquiryItems" type="xs:string" minOccurs="0" />
              <xs:element name="PurchasingReturnItems" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnPurchasingReturnItems" msprop:Generator_ColumnPropNameInRow="PurchasingReturnItems" msprop:Generator_ColumnPropNameInTable="PurchasingReturnItemsColumn" msprop:Generator_UserColumnName="PurchasingReturnItems" type="xs:string" minOccurs="0" />
              <xs:element name="CustomerReturnItems" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnCustomerReturnItems" msprop:Generator_ColumnPropNameInRow="CustomerReturnItems" msprop:Generator_ColumnPropNameInTable="CustomerReturnItemsColumn" msprop:Generator_UserColumnName="CustomerReturnItems" type="xs:string" minOccurs="0" />
              <xs:element name="InventoryTransferItems" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInventoryTransferItems" msprop:Generator_ColumnPropNameInRow="InventoryTransferItems" msprop:Generator_ColumnPropNameInTable="InventoryTransferItemsColumn" msprop:Generator_UserColumnName="InventoryTransferItems" type="xs:string" minOccurs="0" />
              <xs:element name="InventoryAdjustmentItems" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInventoryAdjustmentItems" msprop:Generator_ColumnPropNameInRow="InventoryAdjustmentItems" msprop:Generator_ColumnPropNameInTable="InventoryAdjustmentItemsColumn" msprop:Generator_UserColumnName="InventoryAdjustmentItems" type="xs:string" minOccurs="0" />
              <xs:element name="InventoryVerificationItems" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInventoryVerificationItems" msprop:Generator_ColumnPropNameInRow="InventoryVerificationItems" msprop:Generator_ColumnPropNameInTable="InventoryVerificationItemsColumn" msprop:Generator_UserColumnName="InventoryVerificationItems" type="xs:string" minOccurs="0" />
              <xs:element name="LastNegativeDate" msprop:Generator_ColumnVarNameInTable="columnLastNegativeDate" msprop:Generator_ColumnPropNameInRow="LastNegativeDate" msprop:Generator_ColumnPropNameInTable="LastNegativeDateColumn" msprop:Generator_UserColumnName="LastNegativeDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="QuotationItems" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnQuotationItems" msprop:Generator_ColumnPropNameInRow="QuotationItems" msprop:Generator_ColumnPropNameInTable="QuotationItemsColumn" msprop:Generator_UserColumnName="QuotationItems" type="xs:string" minOccurs="0" />
              <xs:element name="LastNegativeStocksDate" msprop:Generator_ColumnVarNameInTable="columnLastNegativeStocksDate" msprop:Generator_ColumnPropNameInRow="LastNegativeStocksDate" msprop:Generator_ColumnPropNameInTable="LastNegativeStocksDateColumn" msprop:Generator_UserColumnName="LastNegativeStocksDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
              <xs:element name="ProductCodeAlias" msprop:Generator_ColumnVarNameInTable="columnProductCodeAlias" msprop:Generator_ColumnPropNameInRow="ProductCodeAlias" msprop:Generator_ColumnPropNameInTable="ProductCodeAliasColumn" msprop:Generator_UserColumnName="ProductCodeAlias" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="ProductCategory" msprop:Generator_TableClassName="ProductCategoryDataTable" msprop:Generator_TableVarName="tableProductCategory" msprop:Generator_TablePropName="ProductCategory" msprop:Generator_RowDeletingName="ProductCategoryRowDeleting" msprop:Generator_RowChangingName="ProductCategoryRowChanging" msprop:Generator_RowEvHandlerName="ProductCategoryRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductCategoryRowDeleted" msprop:Generator_UserTableName="ProductCategory" msprop:Generator_RowChangedName="ProductCategoryRowChanged" msprop:Generator_RowEvArgName="ProductCategoryRowChangeEvent" msprop:Generator_RowClassName="ProductCategoryRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="CategoryName" msprop:Generator_ColumnVarNameInTable="columnCategoryName" msprop:Generator_ColumnPropNameInRow="CategoryName" msprop:Generator_ColumnPropNameInTable="CategoryNameColumn" msprop:Generator_UserColumnName="CategoryName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Product" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PurchasingOrder" msprop:Generator_TableClassName="PurchasingOrderDataTable" msprop:Generator_TableVarName="tablePurchasingOrder" msprop:Generator_TablePropName="PurchasingOrder" msprop:Generator_RowDeletingName="PurchasingOrderRowDeleting" msprop:Generator_RowChangingName="PurchasingOrderRowChanging" msprop:Generator_RowEvHandlerName="PurchasingOrderRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchasingOrderRowDeleted" msprop:Generator_UserTableName="PurchasingOrder" msprop:Generator_RowChangedName="PurchasingOrderRowChanged" msprop:Generator_RowEvArgName="PurchasingOrderRowChangeEvent" msprop:Generator_RowClassName="PurchasingOrderRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="POCode" msprop:Generator_ColumnVarNameInTable="columnPOCode" msprop:Generator_ColumnPropNameInRow="POCode" msprop:Generator_ColumnPropNameInTable="POCodeColumn" msprop:Generator_UserColumnName="POCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Supplier" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnSupplier" msprop:Generator_ColumnPropNameInRow="Supplier" msprop:Generator_ColumnPropNameInTable="SupplierColumn" msprop:Generator_UserColumnName="Supplier" type="xs:string" minOccurs="0" />
              <xs:element name="PurchasePerson" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnPurchasePerson" msprop:Generator_ColumnPropNameInRow="PurchasePerson" msprop:Generator_ColumnPropNameInTable="PurchasePersonColumn" msprop:Generator_UserColumnName="PurchasePerson" type="xs:string" minOccurs="0" />
              <xs:element name="RequiredDeliveryDate" msprop:Generator_ColumnVarNameInTable="columnRequiredDeliveryDate" msprop:Generator_ColumnPropNameInRow="RequiredDeliveryDate" msprop:Generator_ColumnPropNameInTable="RequiredDeliveryDateColumn" msprop:Generator_UserColumnName="RequiredDeliveryDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" msprop:Generator_UserColumnName="Discount" type="xs:short" minOccurs="0" />
              <xs:element name="TaxIncluded" msprop:Generator_ColumnVarNameInTable="columnTaxIncluded" msprop:Generator_ColumnPropNameInRow="TaxIncluded" msprop:Generator_ColumnPropNameInTable="TaxIncludedColumn" msprop:Generator_UserColumnName="TaxIncluded" type="xs:boolean" minOccurs="0" />
              <xs:element name="InvoiceNumber" msprop:Generator_ColumnVarNameInTable="columnInvoiceNumber" msprop:Generator_ColumnPropNameInRow="InvoiceNumber" msprop:Generator_ColumnPropNameInTable="InvoiceNumberColumn" msprop:Generator_UserColumnName="InvoiceNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ShipVia" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnShipVia" msprop:Generator_ColumnPropNameInRow="ShipVia" msprop:Generator_ColumnPropNameInTable="ShipViaColumn" msprop:Generator_UserColumnName="ShipVia" type="xs:string" minOccurs="0" />
              <xs:element name="TaxRate" msprop:Generator_ColumnVarNameInTable="columnTaxRate" msprop:Generator_ColumnPropNameInRow="TaxRate" msprop:Generator_ColumnPropNameInTable="TaxRateColumn" msprop:Generator_UserColumnName="TaxRate" type="xs:short" minOccurs="0" />
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TotalAmount" msprop:Generator_ColumnVarNameInTable="columnTotalAmount" msprop:Generator_ColumnPropNameInRow="TotalAmount" msprop:Generator_ColumnPropNameInTable="TotalAmountColumn" msprop:Generator_UserColumnName="TotalAmount" type="xs:double" minOccurs="0" />
              <xs:element name="DiscountAmount" msprop:Generator_ColumnVarNameInTable="columnDiscountAmount" msprop:Generator_ColumnPropNameInRow="DiscountAmount" msprop:Generator_ColumnPropNameInTable="DiscountAmountColumn" msprop:Generator_UserColumnName="DiscountAmount" type="xs:double" minOccurs="0" />
              <xs:element name="TaxAmount" msprop:Generator_ColumnVarNameInTable="columnTaxAmount" msprop:Generator_ColumnPropNameInRow="TaxAmount" msprop:Generator_ColumnPropNameInTable="TaxAmountColumn" msprop:Generator_UserColumnName="TaxAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Amount" msprop:Generator_ColumnVarNameInTable="columnAmount" msprop:Generator_ColumnPropNameInRow="Amount" msprop:Generator_ColumnPropNameInTable="AmountColumn" msprop:Generator_UserColumnName="Amount" type="xs:double" minOccurs="0" />
              <xs:element name="ReceivedCash" msprop:Generator_ColumnVarNameInTable="columnReceivedCash" msprop:Generator_ColumnPropNameInRow="ReceivedCash" msprop:Generator_ColumnPropNameInTable="ReceivedCashColumn" msprop:Generator_UserColumnName="ReceivedCash" type="xs:double" minOccurs="0" />
              <xs:element name="ReceivedRemitCash" msprop:Generator_ColumnVarNameInTable="columnReceivedRemitCash" msprop:Generator_ColumnPropNameInRow="ReceivedRemitCash" msprop:Generator_ColumnPropNameInTable="ReceivedRemitCashColumn" msprop:Generator_UserColumnName="ReceivedRemitCash" type="xs:double" minOccurs="0" />
              <xs:element name="ReceivedUnpaid" msprop:Generator_ColumnVarNameInTable="columnReceivedUnpaid" msprop:Generator_ColumnPropNameInRow="ReceivedUnpaid" msprop:Generator_ColumnPropNameInTable="ReceivedUnpaidColumn" msprop:Generator_UserColumnName="ReceivedUnpaid" type="xs:double" minOccurs="0" />
              <xs:element name="ReceivedCollection" msprop:Generator_ColumnVarNameInTable="columnReceivedCollection" msprop:Generator_ColumnPropNameInRow="ReceivedCollection" msprop:Generator_ColumnPropNameInTable="ReceivedCollectionColumn" msprop:Generator_UserColumnName="ReceivedCollection" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="GargoFare" msprop:Generator_ColumnVarNameInTable="columnGargoFare" msprop:Generator_ColumnPropNameInRow="GargoFare" msprop:Generator_ColumnPropNameInTable="GargoFareColumn" msprop:Generator_UserColumnName="GargoFare" type="xs:double" minOccurs="0" />
              <xs:element name="GargoServiceCharge" msprop:Generator_ColumnVarNameInTable="columnGargoServiceCharge" msprop:Generator_ColumnPropNameInRow="GargoServiceCharge" msprop:Generator_ColumnPropNameInTable="GargoServiceChargeColumn" msprop:Generator_UserColumnName="GargoServiceCharge" type="xs:double" minOccurs="0" />
              <xs:element name="GargoTeminal" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnGargoTeminal" msprop:Generator_ColumnPropNameInRow="GargoTeminal" msprop:Generator_ColumnPropNameInTable="GargoTeminalColumn" msprop:Generator_UserColumnName="GargoTeminal" type="xs:string" minOccurs="0" />
              <xs:element name="POStatus" msprop:Generator_ColumnVarNameInTable="columnPOStatus" msprop:Generator_ColumnPropNameInRow="POStatus" msprop:Generator_ColumnPropNameInTable="POStatusColumn" msprop:Generator_UserColumnName="POStatus" type="xs:int" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
              <xs:element name="HasPaymentAmount" msprop:Generator_ColumnVarNameInTable="columnHasPaymentAmount" msprop:Generator_ColumnPropNameInRow="HasPaymentAmount" msprop:Generator_ColumnPropNameInTable="HasPaymentAmountColumn" msprop:Generator_UserColumnName="HasPaymentAmount" type="xs:double" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PurchasingOrderItems" msprop:Generator_TableClassName="PurchasingOrderItemsDataTable" msprop:Generator_TableVarName="tablePurchasingOrderItems" msprop:Generator_TablePropName="PurchasingOrderItems" msprop:Generator_RowDeletingName="PurchasingOrderItemsRowDeleting" msprop:Generator_RowChangingName="PurchasingOrderItemsRowChanging" msprop:Generator_RowEvHandlerName="PurchasingOrderItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchasingOrderItemsRowDeleted" msprop:Generator_UserTableName="PurchasingOrderItems" msprop:Generator_RowChangedName="PurchasingOrderItemsRowChanged" msprop:Generator_RowEvArgName="PurchasingOrderItemsRowChangeEvent" msprop:Generator_RowClassName="PurchasingOrderItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Product" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product" type="xs:string" minOccurs="0" />
              <xs:element name="DiscountPercent" msprop:Generator_ColumnVarNameInTable="columnDiscountPercent" msprop:Generator_ColumnPropNameInRow="DiscountPercent" msprop:Generator_ColumnPropNameInTable="DiscountPercentColumn" msprop:Generator_UserColumnName="DiscountPercent" type="xs:short" minOccurs="0" />
              <xs:element name="UnitPrice" msprop:Generator_ColumnVarNameInTable="columnUnitPrice" msprop:Generator_ColumnPropNameInRow="UnitPrice" msprop:Generator_ColumnPropNameInTable="UnitPriceColumn" msprop:Generator_UserColumnName="UnitPrice" type="xs:double" minOccurs="0" />
              <xs:element name="Quantity" msprop:Generator_ColumnVarNameInTable="columnQuantity" msprop:Generator_ColumnPropNameInRow="Quantity" msprop:Generator_ColumnPropNameInTable="QuantityColumn" msprop:Generator_UserColumnName="Quantity" type="xs:int" minOccurs="0" />
              <xs:element name="PurchasingOrder" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnPurchasingOrder" msprop:Generator_ColumnPropNameInRow="PurchasingOrder" msprop:Generator_ColumnPropNameInTable="PurchasingOrderColumn" msprop:Generator_UserColumnName="PurchasingOrder" type="xs:string" minOccurs="0" />
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TotalAmount" msprop:Generator_ColumnVarNameInTable="columnTotalAmount" msprop:Generator_ColumnPropNameInRow="TotalAmount" msprop:Generator_ColumnPropNameInTable="TotalAmountColumn" msprop:Generator_UserColumnName="TotalAmount" type="xs:double" minOccurs="0" />
              <xs:element name="DiscountAmount" msprop:Generator_ColumnVarNameInTable="columnDiscountAmount" msprop:Generator_ColumnPropNameInRow="DiscountAmount" msprop:Generator_ColumnPropNameInTable="DiscountAmountColumn" msprop:Generator_UserColumnName="DiscountAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Amount" msprop:Generator_ColumnVarNameInTable="columnAmount" msprop:Generator_ColumnPropNameInRow="Amount" msprop:Generator_ColumnPropNameInTable="AmountColumn" msprop:Generator_UserColumnName="Amount" type="xs:double" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PurchasingReturn" msprop:Generator_TableClassName="PurchasingReturnDataTable" msprop:Generator_TableVarName="tablePurchasingReturn" msprop:Generator_TablePropName="PurchasingReturn" msprop:Generator_RowDeletingName="PurchasingReturnRowDeleting" msprop:Generator_RowChangingName="PurchasingReturnRowChanging" msprop:Generator_RowEvHandlerName="PurchasingReturnRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchasingReturnRowDeleted" msprop:Generator_UserTableName="PurchasingReturn" msprop:Generator_RowChangedName="PurchasingReturnRowChanged" msprop:Generator_RowEvArgName="PurchasingReturnRowChangeEvent" msprop:Generator_RowClassName="PurchasingReturnRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="PRDCode" msprop:Generator_ColumnVarNameInTable="columnPRDCode" msprop:Generator_ColumnPropNameInRow="PRDCode" msprop:Generator_ColumnPropNameInTable="PRDCodeColumn" msprop:Generator_UserColumnName="PRDCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Supplier" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnSupplier" msprop:Generator_ColumnPropNameInRow="Supplier" msprop:Generator_ColumnPropNameInTable="SupplierColumn" msprop:Generator_UserColumnName="Supplier" type="xs:string" minOccurs="0" />
              <xs:element name="PONumber" msprop:Generator_ColumnVarNameInTable="columnPONumber" msprop:Generator_ColumnPropNameInRow="PONumber" msprop:Generator_ColumnPropNameInTable="PONumberColumn" msprop:Generator_UserColumnName="PONumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ReturnsDate" msprop:Generator_ColumnVarNameInTable="columnReturnsDate" msprop:Generator_ColumnPropNameInRow="ReturnsDate" msprop:Generator_ColumnPropNameInTable="ReturnsDateColumn" msprop:Generator_UserColumnName="ReturnsDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PurchasingReturnItems" msprop:Generator_TableClassName="PurchasingReturnItemsDataTable" msprop:Generator_TableVarName="tablePurchasingReturnItems" msprop:Generator_TablePropName="PurchasingReturnItems" msprop:Generator_RowDeletingName="PurchasingReturnItemsRowDeleting" msprop:Generator_RowChangingName="PurchasingReturnItemsRowChanging" msprop:Generator_RowEvHandlerName="PurchasingReturnItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchasingReturnItemsRowDeleted" msprop:Generator_UserTableName="PurchasingReturnItems" msprop:Generator_RowChangedName="PurchasingReturnItemsRowChanged" msprop:Generator_RowEvArgName="PurchasingReturnItemsRowChangeEvent" msprop:Generator_RowClassName="PurchasingReturnItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Product" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product" type="xs:string" minOccurs="0" />
              <xs:element name="AvailableQuantity" msprop:Generator_ColumnVarNameInTable="columnAvailableQuantity" msprop:Generator_ColumnPropNameInRow="AvailableQuantity" msprop:Generator_ColumnPropNameInTable="AvailableQuantityColumn" msprop:Generator_UserColumnName="AvailableQuantity" type="xs:int" minOccurs="0" />
              <xs:element name="WasteQuantify" msprop:Generator_ColumnVarNameInTable="columnWasteQuantify" msprop:Generator_ColumnPropNameInRow="WasteQuantify" msprop:Generator_ColumnPropNameInTable="WasteQuantifyColumn" msprop:Generator_UserColumnName="WasteQuantify" type="xs:double" minOccurs="0" />
              <xs:element name="ReturnPrice" msprop:Generator_ColumnVarNameInTable="columnReturnPrice" msprop:Generator_ColumnPropNameInRow="ReturnPrice" msprop:Generator_ColumnPropNameInTable="ReturnPriceColumn" msprop:Generator_UserColumnName="ReturnPrice" type="xs:double" minOccurs="0" />
              <xs:element name="ReturnsCause" msprop:Generator_ColumnVarNameInTable="columnReturnsCause" msprop:Generator_ColumnPropNameInRow="ReturnsCause" msprop:Generator_ColumnPropNameInTable="ReturnsCauseColumn" msprop:Generator_UserColumnName="ReturnsCause" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PurchasingReturn" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnPurchasingReturn" msprop:Generator_ColumnPropNameInRow="PurchasingReturn" msprop:Generator_ColumnPropNameInTable="PurchasingReturnColumn" msprop:Generator_UserColumnName="PurchasingReturn" type="xs:string" minOccurs="0" />
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Quotation" msprop:Generator_TableClassName="QuotationDataTable" msprop:Generator_TableVarName="tableQuotation" msprop:Generator_TablePropName="Quotation" msprop:Generator_RowDeletingName="QuotationRowDeleting" msprop:Generator_RowChangingName="QuotationRowChanging" msprop:Generator_RowEvHandlerName="QuotationRowChangeEventHandler" msprop:Generator_RowDeletedName="QuotationRowDeleted" msprop:Generator_UserTableName="Quotation" msprop:Generator_RowChangedName="QuotationRowChanged" msprop:Generator_RowEvArgName="QuotationRowChangeEvent" msprop:Generator_RowClassName="QuotationRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="QUCode" msprop:Generator_ColumnVarNameInTable="columnQUCode" msprop:Generator_ColumnPropNameInRow="QUCode" msprop:Generator_ColumnPropNameInTable="QUCodeColumn" msprop:Generator_UserColumnName="QUCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DeliveryDate" msprop:Generator_ColumnVarNameInTable="columnDeliveryDate" msprop:Generator_ColumnPropNameInRow="DeliveryDate" msprop:Generator_ColumnPropNameInTable="DeliveryDateColumn" msprop:Generator_UserColumnName="DeliveryDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="TimeOfPayment" msprop:Generator_ColumnVarNameInTable="columnTimeOfPayment" msprop:Generator_ColumnPropNameInRow="TimeOfPayment" msprop:Generator_ColumnPropNameInTable="TimeOfPaymentColumn" msprop:Generator_UserColumnName="TimeOfPayment" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" msprop:Generator_UserColumnName="Discount" type="xs:short" minOccurs="0" />
              <xs:element name="TaxIncluded" msprop:Generator_ColumnVarNameInTable="columnTaxIncluded" msprop:Generator_ColumnPropNameInRow="TaxIncluded" msprop:Generator_ColumnPropNameInTable="TaxIncludedColumn" msprop:Generator_UserColumnName="TaxIncluded" type="xs:boolean" minOccurs="0" />
              <xs:element name="InvoiceNumber" msprop:Generator_ColumnVarNameInTable="columnInvoiceNumber" msprop:Generator_ColumnPropNameInRow="InvoiceNumber" msprop:Generator_ColumnPropNameInTable="InvoiceNumberColumn" msprop:Generator_UserColumnName="InvoiceNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TaxRate" msprop:Generator_ColumnVarNameInTable="columnTaxRate" msprop:Generator_ColumnPropNameInRow="TaxRate" msprop:Generator_ColumnPropNameInTable="TaxRateColumn" msprop:Generator_UserColumnName="TaxRate" type="xs:short" minOccurs="0" />
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TotalAmount" msprop:Generator_ColumnVarNameInTable="columnTotalAmount" msprop:Generator_ColumnPropNameInRow="TotalAmount" msprop:Generator_ColumnPropNameInTable="TotalAmountColumn" msprop:Generator_UserColumnName="TotalAmount" type="xs:double" minOccurs="0" />
              <xs:element name="DiscountAmount" msprop:Generator_ColumnVarNameInTable="columnDiscountAmount" msprop:Generator_ColumnPropNameInRow="DiscountAmount" msprop:Generator_ColumnPropNameInTable="DiscountAmountColumn" msprop:Generator_UserColumnName="DiscountAmount" type="xs:double" minOccurs="0" />
              <xs:element name="TaxAmount" msprop:Generator_ColumnVarNameInTable="columnTaxAmount" msprop:Generator_ColumnPropNameInRow="TaxAmount" msprop:Generator_ColumnPropNameInTable="TaxAmountColumn" msprop:Generator_UserColumnName="TaxAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Amount" msprop:Generator_ColumnVarNameInTable="columnAmount" msprop:Generator_ColumnPropNameInRow="Amount" msprop:Generator_ColumnPropNameInTable="AmountColumn" msprop:Generator_UserColumnName="Amount" type="xs:double" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="QuotationItems" msprop:Generator_TableClassName="QuotationItemsDataTable" msprop:Generator_TableVarName="tableQuotationItems" msprop:Generator_TablePropName="QuotationItems" msprop:Generator_RowDeletingName="QuotationItemsRowDeleting" msprop:Generator_RowChangingName="QuotationItemsRowChanging" msprop:Generator_RowEvHandlerName="QuotationItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="QuotationItemsRowDeleted" msprop:Generator_UserTableName="QuotationItems" msprop:Generator_RowChangedName="QuotationItemsRowChanged" msprop:Generator_RowEvArgName="QuotationItemsRowChangeEvent" msprop:Generator_RowClassName="QuotationItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Product" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product" type="xs:string" minOccurs="0" />
              <xs:element name="UnitPrice" msprop:Generator_ColumnVarNameInTable="columnUnitPrice" msprop:Generator_ColumnPropNameInRow="UnitPrice" msprop:Generator_ColumnPropNameInTable="UnitPriceColumn" msprop:Generator_UserColumnName="UnitPrice" type="xs:double" minOccurs="0" />
              <xs:element name="Quantity" msprop:Generator_ColumnVarNameInTable="columnQuantity" msprop:Generator_ColumnPropNameInRow="Quantity" msprop:Generator_ColumnPropNameInTable="QuantityColumn" msprop:Generator_UserColumnName="Quantity" type="xs:double" minOccurs="0" />
              <xs:element name="DiscountPercent" msprop:Generator_ColumnVarNameInTable="columnDiscountPercent" msprop:Generator_ColumnPropNameInRow="DiscountPercent" msprop:Generator_ColumnPropNameInTable="DiscountPercentColumn" msprop:Generator_UserColumnName="DiscountPercent" type="xs:short" minOccurs="0" />
              <xs:element name="TotalAmount" msprop:Generator_ColumnVarNameInTable="columnTotalAmount" msprop:Generator_ColumnPropNameInRow="TotalAmount" msprop:Generator_ColumnPropNameInTable="TotalAmountColumn" msprop:Generator_UserColumnName="TotalAmount" type="xs:double" minOccurs="0" />
              <xs:element name="DiscountAmount" msprop:Generator_ColumnVarNameInTable="columnDiscountAmount" msprop:Generator_ColumnPropNameInRow="DiscountAmount" msprop:Generator_ColumnPropNameInTable="DiscountAmountColumn" msprop:Generator_UserColumnName="DiscountAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Amount" msprop:Generator_ColumnVarNameInTable="columnAmount" msprop:Generator_ColumnPropNameInRow="Amount" msprop:Generator_ColumnPropNameInTable="AmountColumn" msprop:Generator_UserColumnName="Amount" type="xs:double" minOccurs="0" />
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Quotation" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnQuotation" msprop:Generator_ColumnPropNameInRow="Quotation" msprop:Generator_ColumnPropNameInTable="QuotationColumn" msprop:Generator_UserColumnName="Quotation" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="SaleOrder" msprop:Generator_TableClassName="SaleOrderDataTable" msprop:Generator_TableVarName="tableSaleOrder" msprop:Generator_TablePropName="SaleOrder" msprop:Generator_RowDeletingName="SaleOrderRowDeleting" msprop:Generator_RowChangingName="SaleOrderRowChanging" msprop:Generator_RowEvHandlerName="SaleOrderRowChangeEventHandler" msprop:Generator_RowDeletedName="SaleOrderRowDeleted" msprop:Generator_UserTableName="SaleOrder" msprop:Generator_RowChangedName="SaleOrderRowChanged" msprop:Generator_RowEvArgName="SaleOrderRowChangeEvent" msprop:Generator_RowClassName="SaleOrderRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="SOCode" msprop:Generator_ColumnVarNameInTable="columnSOCode" msprop:Generator_ColumnPropNameInRow="SOCode" msprop:Generator_ColumnPropNameInTable="SOCodeColumn" msprop:Generator_UserColumnName="SOCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DeliveryDate" msprop:Generator_ColumnVarNameInTable="columnDeliveryDate" msprop:Generator_ColumnPropNameInRow="DeliveryDate" msprop:Generator_ColumnPropNameInTable="DeliveryDateColumn" msprop:Generator_UserColumnName="DeliveryDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Customer" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnCustomer" msprop:Generator_ColumnPropNameInRow="Customer" msprop:Generator_ColumnPropNameInTable="CustomerColumn" msprop:Generator_UserColumnName="Customer" type="xs:string" minOccurs="0" />
              <xs:element name="Employee" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnEmployee" msprop:Generator_ColumnPropNameInRow="Employee" msprop:Generator_ColumnPropNameInTable="EmployeeColumn" msprop:Generator_UserColumnName="Employee" type="xs:string" minOccurs="0" />
              <xs:element name="TimeOfPayment" msprop:Generator_ColumnVarNameInTable="columnTimeOfPayment" msprop:Generator_ColumnPropNameInRow="TimeOfPayment" msprop:Generator_ColumnPropNameInTable="TimeOfPaymentColumn" msprop:Generator_UserColumnName="TimeOfPayment" type="xs:dateTime" minOccurs="0" />
              <xs:element name="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" msprop:Generator_UserColumnName="Discount" type="xs:short" minOccurs="0" />
              <xs:element name="TaxIncluded" msprop:Generator_ColumnVarNameInTable="columnTaxIncluded" msprop:Generator_ColumnPropNameInRow="TaxIncluded" msprop:Generator_ColumnPropNameInTable="TaxIncludedColumn" msprop:Generator_UserColumnName="TaxIncluded" type="xs:boolean" minOccurs="0" />
              <xs:element name="InvoiceNumber" msprop:Generator_ColumnVarNameInTable="columnInvoiceNumber" msprop:Generator_ColumnPropNameInRow="InvoiceNumber" msprop:Generator_ColumnPropNameInTable="InvoiceNumberColumn" msprop:Generator_UserColumnName="InvoiceNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TaxRate" msprop:Generator_ColumnVarNameInTable="columnTaxRate" msprop:Generator_ColumnPropNameInRow="TaxRate" msprop:Generator_ColumnPropNameInTable="TaxRateColumn" msprop:Generator_UserColumnName="TaxRate" type="xs:short" minOccurs="0" />
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TotalAmount" msprop:Generator_ColumnVarNameInTable="columnTotalAmount" msprop:Generator_ColumnPropNameInRow="TotalAmount" msprop:Generator_ColumnPropNameInTable="TotalAmountColumn" msprop:Generator_UserColumnName="TotalAmount" type="xs:double" minOccurs="0" />
              <xs:element name="DiscountAmount" msprop:Generator_ColumnVarNameInTable="columnDiscountAmount" msprop:Generator_ColumnPropNameInRow="DiscountAmount" msprop:Generator_ColumnPropNameInTable="DiscountAmountColumn" msprop:Generator_UserColumnName="DiscountAmount" type="xs:double" minOccurs="0" />
              <xs:element name="TaxAmount" msprop:Generator_ColumnVarNameInTable="columnTaxAmount" msprop:Generator_ColumnPropNameInRow="TaxAmount" msprop:Generator_ColumnPropNameInTable="TaxAmountColumn" msprop:Generator_UserColumnName="TaxAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Amount" msprop:Generator_ColumnVarNameInTable="columnAmount" msprop:Generator_ColumnPropNameInRow="Amount" msprop:Generator_ColumnPropNameInTable="AmountColumn" msprop:Generator_UserColumnName="Amount" type="xs:double" minOccurs="0" />
              <xs:element name="ReceivedCash" msprop:Generator_ColumnVarNameInTable="columnReceivedCash" msprop:Generator_ColumnPropNameInRow="ReceivedCash" msprop:Generator_ColumnPropNameInTable="ReceivedCashColumn" msprop:Generator_UserColumnName="ReceivedCash" type="xs:double" minOccurs="0" />
              <xs:element name="ReceivedRemitCash" msprop:Generator_ColumnVarNameInTable="columnReceivedRemitCash" msprop:Generator_ColumnPropNameInRow="ReceivedRemitCash" msprop:Generator_ColumnPropNameInTable="ReceivedRemitCashColumn" msprop:Generator_UserColumnName="ReceivedRemitCash" type="xs:double" minOccurs="0" />
              <xs:element name="ReceivedUnpaid" msprop:Generator_ColumnVarNameInTable="columnReceivedUnpaid" msprop:Generator_ColumnPropNameInRow="ReceivedUnpaid" msprop:Generator_ColumnPropNameInTable="ReceivedUnpaidColumn" msprop:Generator_UserColumnName="ReceivedUnpaid" type="xs:double" minOccurs="0" />
              <xs:element name="ReceivedCollection" msprop:Generator_ColumnVarNameInTable="columnReceivedCollection" msprop:Generator_ColumnPropNameInRow="ReceivedCollection" msprop:Generator_ColumnPropNameInTable="ReceivedCollectionColumn" msprop:Generator_UserColumnName="ReceivedCollection" type="xs:double" minOccurs="0" />
              <xs:element name="GargoFare" msprop:Generator_ColumnVarNameInTable="columnGargoFare" msprop:Generator_ColumnPropNameInRow="GargoFare" msprop:Generator_ColumnPropNameInTable="GargoFareColumn" msprop:Generator_UserColumnName="GargoFare" type="xs:double" minOccurs="0" />
              <xs:element name="GargoServiceCharge" msprop:Generator_ColumnVarNameInTable="columnGargoServiceCharge" msprop:Generator_ColumnPropNameInRow="GargoServiceCharge" msprop:Generator_ColumnPropNameInTable="GargoServiceChargeColumn" msprop:Generator_UserColumnName="GargoServiceCharge" type="xs:double" minOccurs="0" />
              <xs:element name="GargoTeminal" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnGargoTeminal" msprop:Generator_ColumnPropNameInRow="GargoTeminal" msprop:Generator_ColumnPropNameInTable="GargoTeminalColumn" msprop:Generator_UserColumnName="GargoTeminal" type="xs:string" minOccurs="0" />
              <xs:element name="SoStatus" msprop:Generator_ColumnVarNameInTable="columnSoStatus" msprop:Generator_ColumnPropNameInRow="SoStatus" msprop:Generator_ColumnPropNameInTable="SoStatusColumn" msprop:Generator_UserColumnName="SoStatus" type="xs:int" minOccurs="0" />
              <xs:element name="Telphone" msprop:Generator_ColumnVarNameInTable="columnTelphone" msprop:Generator_ColumnPropNameInRow="Telphone" msprop:Generator_ColumnPropNameInTable="TelphoneColumn" msprop:Generator_UserColumnName="Telphone" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DebtAmount" msprop:Generator_ColumnVarNameInTable="columnDebtAmount" msprop:Generator_ColumnPropNameInRow="DebtAmount" msprop:Generator_ColumnPropNameInTable="DebtAmountColumn" msprop:Generator_UserColumnName="DebtAmount" type="xs:double" minOccurs="0" />
              <xs:element name="CreateUser" msprop:Generator_ColumnVarNameInTable="columnCreateUser" msprop:Generator_ColumnPropNameInRow="CreateUser" msprop:Generator_ColumnPropNameInTable="CreateUserColumn" msprop:Generator_UserColumnName="CreateUser" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CreateDate" msprop:Generator_ColumnVarNameInTable="columnCreateDate" msprop:Generator_ColumnPropNameInRow="CreateDate" msprop:Generator_ColumnPropNameInTable="CreateDateColumn" msprop:Generator_UserColumnName="CreateDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
              <xs:element name="HasPaymentAmount" msprop:Generator_ColumnVarNameInTable="columnHasPaymentAmount" msprop:Generator_ColumnPropNameInRow="HasPaymentAmount" msprop:Generator_ColumnPropNameInTable="HasPaymentAmountColumn" msprop:Generator_UserColumnName="HasPaymentAmount" type="xs:double" minOccurs="0" />
              <xs:element name="HasReceivedAmount" msprop:Generator_ColumnVarNameInTable="columnHasReceivedAmount" msprop:Generator_ColumnPropNameInRow="HasReceivedAmount" msprop:Generator_ColumnPropNameInTable="HasReceivedAmountColumn" msprop:Generator_UserColumnName="HasReceivedAmount" type="xs:double" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="SaleOrderItems" msprop:Generator_TableClassName="SaleOrderItemsDataTable" msprop:Generator_TableVarName="tableSaleOrderItems" msprop:Generator_TablePropName="SaleOrderItems" msprop:Generator_RowDeletingName="SaleOrderItemsRowDeleting" msprop:Generator_RowChangingName="SaleOrderItemsRowChanging" msprop:Generator_RowEvHandlerName="SaleOrderItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="SaleOrderItemsRowDeleted" msprop:Generator_UserTableName="SaleOrderItems" msprop:Generator_RowChangedName="SaleOrderItemsRowChanged" msprop:Generator_RowEvArgName="SaleOrderItemsRowChangeEvent" msprop:Generator_RowClassName="SaleOrderItemsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Product" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product" type="xs:string" minOccurs="0" />
              <xs:element name="UnitPrice" msprop:Generator_ColumnVarNameInTable="columnUnitPrice" msprop:Generator_ColumnPropNameInRow="UnitPrice" msprop:Generator_ColumnPropNameInTable="UnitPriceColumn" msprop:Generator_UserColumnName="UnitPrice" type="xs:double" minOccurs="0" />
              <xs:element name="Quantity" msprop:Generator_ColumnVarNameInTable="columnQuantity" msprop:Generator_ColumnPropNameInRow="Quantity" msprop:Generator_ColumnPropNameInTable="QuantityColumn" msprop:Generator_UserColumnName="Quantity" type="xs:int" minOccurs="0" />
              <xs:element name="DiscountPercent" msprop:Generator_ColumnVarNameInTable="columnDiscountPercent" msprop:Generator_ColumnPropNameInRow="DiscountPercent" msprop:Generator_ColumnPropNameInTable="DiscountPercentColumn" msprop:Generator_UserColumnName="DiscountPercent" type="xs:short" minOccurs="0" />
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TotalAmount" msprop:Generator_ColumnVarNameInTable="columnTotalAmount" msprop:Generator_ColumnPropNameInRow="TotalAmount" msprop:Generator_ColumnPropNameInTable="TotalAmountColumn" msprop:Generator_UserColumnName="TotalAmount" type="xs:double" minOccurs="0" />
              <xs:element name="DiscountAmount" msprop:Generator_ColumnVarNameInTable="columnDiscountAmount" msprop:Generator_ColumnPropNameInRow="DiscountAmount" msprop:Generator_ColumnPropNameInTable="DiscountAmountColumn" msprop:Generator_UserColumnName="DiscountAmount" type="xs:double" minOccurs="0" />
              <xs:element name="Amount" msprop:Generator_ColumnVarNameInTable="columnAmount" msprop:Generator_ColumnPropNameInRow="Amount" msprop:Generator_ColumnPropNameInTable="AmountColumn" msprop:Generator_UserColumnName="Amount" type="xs:double" minOccurs="0" />
              <xs:element name="SaleOrder" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnSaleOrder" msprop:Generator_ColumnPropNameInRow="SaleOrder" msprop:Generator_ColumnPropNameInTable="SaleOrderColumn" msprop:Generator_UserColumnName="SaleOrder" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="ShipVia" msprop:Generator_TableClassName="ShipViaDataTable" msprop:Generator_TableVarName="tableShipVia" msprop:Generator_TablePropName="ShipVia" msprop:Generator_RowDeletingName="ShipViaRowDeleting" msprop:Generator_RowChangingName="ShipViaRowChanging" msprop:Generator_RowEvHandlerName="ShipViaRowChangeEventHandler" msprop:Generator_RowDeletedName="ShipViaRowDeleted" msprop:Generator_UserTableName="ShipVia" msprop:Generator_RowChangedName="ShipViaRowChanged" msprop:Generator_RowEvArgName="ShipViaRowChangeEvent" msprop:Generator_RowClassName="ShipViaRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="ShipViaName" msprop:Generator_ColumnVarNameInTable="columnShipViaName" msprop:Generator_ColumnPropNameInRow="ShipViaName" msprop:Generator_ColumnPropNameInTable="ShipViaNameColumn" msprop:Generator_UserColumnName="ShipViaName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PurchasingOrder" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnPurchasingOrder" msprop:Generator_ColumnPropNameInRow="PurchasingOrder" msprop:Generator_ColumnPropNameInTable="PurchasingOrderColumn" msprop:Generator_UserColumnName="PurchasingOrder" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="ShopStore" msprop:Generator_TableClassName="ShopStoreDataTable" msprop:Generator_TableVarName="tableShopStore" msprop:Generator_TablePropName="ShopStore" msprop:Generator_RowDeletingName="ShopStoreRowDeleting" msprop:Generator_RowChangingName="ShopStoreRowChanging" msprop:Generator_RowEvHandlerName="ShopStoreRowChangeEventHandler" msprop:Generator_RowDeletedName="ShopStoreRowDeleted" msprop:Generator_UserTableName="ShopStore" msprop:Generator_RowChangedName="ShopStoreRowChanged" msprop:Generator_RowEvArgName="ShopStoreRowChangeEvent" msprop:Generator_RowClassName="ShopStoreRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="ShopStoreName" msprop:Generator_ColumnVarNameInTable="columnShopStoreName" msprop:Generator_ColumnPropNameInRow="ShopStoreName" msprop:Generator_ColumnPropNameInTable="ShopStoreNameColumn" msprop:Generator_UserColumnName="ShopStoreName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Address" msprop:Generator_ColumnVarNameInTable="columnAddress" msprop:Generator_ColumnPropNameInRow="Address" msprop:Generator_ColumnPropNameInTable="AddressColumn" msprop:Generator_UserColumnName="Address" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Telphone" msprop:Generator_ColumnVarNameInTable="columnTelphone" msprop:Generator_ColumnPropNameInRow="Telphone" msprop:Generator_ColumnPropNameInTable="TelphoneColumn" msprop:Generator_UserColumnName="Telphone" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="InventoryTransfer" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInventoryTransfer" msprop:Generator_ColumnPropNameInRow="InventoryTransfer" msprop:Generator_ColumnPropNameInTable="InventoryTransferColumn" msprop:Generator_UserColumnName="InventoryTransfer" type="xs:string" minOccurs="0" />
              <xs:element name="InventoryVerification" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInventoryVerification" msprop:Generator_ColumnPropNameInRow="InventoryVerification" msprop:Generator_ColumnPropNameInTable="InventoryVerificationColumn" msprop:Generator_UserColumnName="InventoryVerification" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Supplier" msprop:Generator_TableClassName="SupplierDataTable" msprop:Generator_TableVarName="tableSupplier" msprop:Generator_TablePropName="Supplier" msprop:Generator_RowDeletingName="SupplierRowDeleting" msprop:Generator_RowChangingName="SupplierRowChanging" msprop:Generator_RowEvHandlerName="SupplierRowChangeEventHandler" msprop:Generator_RowDeletedName="SupplierRowDeleted" msprop:Generator_UserTableName="Supplier" msprop:Generator_RowChangedName="SupplierRowChanged" msprop:Generator_RowEvArgName="SupplierRowChangeEvent" msprop:Generator_RowClassName="SupplierRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="SupplierCode" msprop:Generator_ColumnVarNameInTable="columnSupplierCode" msprop:Generator_ColumnPropNameInRow="SupplierCode" msprop:Generator_ColumnPropNameInTable="SupplierCodeColumn" msprop:Generator_UserColumnName="SupplierCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ShortName" msprop:Generator_ColumnVarNameInTable="columnShortName" msprop:Generator_ColumnPropNameInRow="ShortName" msprop:Generator_ColumnPropNameInTable="ShortNameColumn" msprop:Generator_UserColumnName="ShortName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LongName" msprop:Generator_ColumnVarNameInTable="columnLongName" msprop:Generator_ColumnPropNameInRow="LongName" msprop:Generator_ColumnPropNameInTable="LongNameColumn" msprop:Generator_UserColumnName="LongName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Telephone" msprop:Generator_ColumnVarNameInTable="columnTelephone" msprop:Generator_ColumnPropNameInRow="Telephone" msprop:Generator_ColumnPropNameInTable="TelephoneColumn" msprop:Generator_UserColumnName="Telephone" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Fax" msprop:Generator_ColumnVarNameInTable="columnFax" msprop:Generator_ColumnPropNameInRow="Fax" msprop:Generator_ColumnPropNameInTable="FaxColumn" msprop:Generator_UserColumnName="Fax" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Address" msprop:Generator_ColumnVarNameInTable="columnAddress" msprop:Generator_ColumnPropNameInRow="Address" msprop:Generator_ColumnPropNameInTable="AddressColumn" msprop:Generator_UserColumnName="Address" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Zip" msprop:Generator_ColumnVarNameInTable="columnZip" msprop:Generator_ColumnPropNameInRow="Zip" msprop:Generator_ColumnPropNameInTable="ZipColumn" msprop:Generator_UserColumnName="Zip" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="WebSite" msprop:Generator_ColumnVarNameInTable="columnWebSite" msprop:Generator_ColumnPropNameInRow="WebSite" msprop:Generator_ColumnPropNameInTable="WebSiteColumn" msprop:Generator_UserColumnName="WebSite" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AccountName" msprop:Generator_ColumnVarNameInTable="columnAccountName" msprop:Generator_ColumnPropNameInRow="AccountName" msprop:Generator_ColumnPropNameInTable="AccountNameColumn" msprop:Generator_UserColumnName="AccountName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AccountBank" msprop:Generator_ColumnVarNameInTable="columnAccountBank" msprop:Generator_ColumnPropNameInRow="AccountBank" msprop:Generator_ColumnPropNameInTable="AccountBankColumn" msprop:Generator_UserColumnName="AccountBank" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="BankNumber" msprop:Generator_ColumnVarNameInTable="columnBankNumber" msprop:Generator_ColumnPropNameInRow="BankNumber" msprop:Generator_ColumnPropNameInTable="BankNumberColumn" msprop:Generator_UserColumnName="BankNumber" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="BillToAddressID" msprop:Generator_ColumnVarNameInTable="columnBillToAddressID" msprop:Generator_ColumnPropNameInRow="BillToAddressID" msprop:Generator_ColumnPropNameInTable="BillToAddressIDColumn" msprop:Generator_UserColumnName="BillToAddressID" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remarks" msprop:Generator_ColumnVarNameInTable="columnRemarks" msprop:Generator_ColumnPropNameInRow="Remarks" msprop:Generator_ColumnPropNameInTable="RemarksColumn" msprop:Generator_UserColumnName="Remarks" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsActive" msprop:Generator_ColumnVarNameInTable="columnIsActive" msprop:Generator_ColumnPropNameInRow="IsActive" msprop:Generator_ColumnPropNameInTable="IsActiveColumn" msprop:Generator_UserColumnName="IsActive" type="xs:boolean" minOccurs="0" />
              <xs:element name="Inquiry" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnInquiry" msprop:Generator_ColumnPropNameInRow="Inquiry" msprop:Generator_ColumnPropNameInTable="InquiryColumn" msprop:Generator_UserColumnName="Inquiry" type="xs:string" minOccurs="0" />
              <xs:element name="PurchasingReturn" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnPurchasingReturn" msprop:Generator_ColumnPropNameInRow="PurchasingReturn" msprop:Generator_ColumnPropNameInTable="PurchasingReturnColumn" msprop:Generator_UserColumnName="PurchasingReturn" type="xs:string" minOccurs="0" />
              <xs:element name="AccountPayable" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnAccountPayable" msprop:Generator_ColumnPropNameInRow="AccountPayable" msprop:Generator_ColumnPropNameInTable="AccountPayableColumn" msprop:Generator_UserColumnName="AccountPayable" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Unit" msprop:Generator_TableClassName="UnitDataTable" msprop:Generator_TableVarName="tableUnit" msprop:Generator_TablePropName="Unit" msprop:Generator_RowDeletingName="UnitRowDeleting" msprop:Generator_RowChangingName="UnitRowChanging" msprop:Generator_RowEvHandlerName="UnitRowChangeEventHandler" msprop:Generator_RowDeletedName="UnitRowDeleted" msprop:Generator_UserTableName="Unit" msprop:Generator_RowChangedName="UnitRowChanged" msprop:Generator_RowEvArgName="UnitRowChangeEvent" msprop:Generator_RowClassName="UnitRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Oid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnOid" msprop:Generator_ColumnPropNameInRow="Oid" msprop:Generator_ColumnPropNameInTable="OidColumn" msprop:Generator_UserColumnName="Oid" type="xs:string" />
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Remark" msprop:Generator_ColumnVarNameInTable="columnRemark" msprop:Generator_ColumnPropNameInRow="Remark" msprop:Generator_ColumnPropNameInTable="RemarkColumn" msprop:Generator_UserColumnName="Remark" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Product" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product" type="xs:string" minOccurs="0" />
              <xs:element name="OptimisticLockField" msprop:Generator_ColumnVarNameInTable="columnOptimisticLockField" msprop:Generator_ColumnPropNameInRow="OptimisticLockField" msprop:Generator_ColumnPropNameInTable="OptimisticLockFieldColumn" msprop:Generator_UserColumnName="OptimisticLockField" type="xs:int" minOccurs="0" />
              <xs:element name="GCRecord" msprop:Generator_ColumnVarNameInTable="columnGCRecord" msprop:Generator_ColumnPropNameInRow="GCRecord" msprop:Generator_ColumnPropNameInTable="GCRecordColumn" msprop:Generator_UserColumnName="GCRecord" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:AccountPayable" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="AccountPayableItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:AccountPayableItems" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="AccountReceivable_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:AccountReceivable" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="AccountReceivableItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:AccountReceivableItems" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="CashAccount_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CashAccount" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="Contact_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Contact" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="Customer_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Customer" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="CustomerCategory_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CustomerCategory" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="CustomerReturn_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CustomerReturn" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="CustomerReturnItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CustomerReturnItems" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="Employee_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Employee" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="GargoTeminal_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:GargoTeminal" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="InOutAccount_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:InOutAccount" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="InOutAccountType_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:InOutAccountType" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="Inquiry_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Inquiry" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="InquiryItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:InquiryItems" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="InventoryAdjustment_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:InventoryAdjustment" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="InventoryAdjustmentItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:InventoryAdjustmentItems" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="InventoryTransfer_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:InventoryTransfer" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="InventoryTransferItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:InventoryTransferItems" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="InventoryVerification_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:InventoryVerification" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="InventoryVerificationItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:InventoryVerificationItems" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="Option_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Option" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="Product_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Product" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="ProductCategory_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ProductCategory" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="PurchasingOrder_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PurchasingOrder" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="PurchasingOrderItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PurchasingOrderItems" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="PurchasingReturn_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PurchasingReturn" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="PurchasingReturnItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PurchasingReturnItems" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="Quotation_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Quotation" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="QuotationItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:QuotationItems" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="SaleOrder_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:SaleOrder" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="SaleOrderItems_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:SaleOrderItems" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="ShipVia_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ShipVia" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="ShopStore_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ShopStore" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="Supplier_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Supplier" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
    <xs:unique name="Unit_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Unit" />
      <xs:field xpath="mstns:Oid" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="FK_AccountPayable_GargoTeminal" msdata:parent="GargoTeminal" msdata:child="AccountPayable" msdata:parentkey="Oid" msdata:childkey="GargoTeminal" msprop:Generator_UserChildTable="AccountPayable" msprop:Generator_ChildPropName="GetAccountPayableRows" msprop:Generator_UserRelationName="FK_AccountPayable_GargoTeminal" msprop:Generator_RelationVarName="relationFK_AccountPayable_GargoTeminal" msprop:Generator_UserParentTable="GargoTeminal" msprop:Generator_ParentPropName="GargoTeminalRow" />
      <msdata:Relationship name="FK_AccountPayable_Supplier" msdata:parent="Supplier" msdata:child="AccountPayable" msdata:parentkey="Oid" msdata:childkey="Supplier" msprop:Generator_UserChildTable="AccountPayable" msprop:Generator_ChildPropName="GetAccountPayableRows" msprop:Generator_UserRelationName="FK_AccountPayable_Supplier" msprop:Generator_RelationVarName="relationFK_AccountPayable_Supplier" msprop:Generator_UserParentTable="Supplier" msprop:Generator_ParentPropName="SupplierRow" />
      <msdata:Relationship name="FK_AccountPayableItems_AccountPayable" msdata:parent="AccountPayable" msdata:child="AccountPayableItems" msdata:parentkey="Oid" msdata:childkey="AccountPayable" msprop:Generator_UserChildTable="AccountPayableItems" msprop:Generator_ChildPropName="GetAccountPayableItemsRows" msprop:Generator_UserRelationName="FK_AccountPayableItems_AccountPayable" msprop:Generator_ParentPropName="AccountPayableRow" msprop:Generator_RelationVarName="relationFK_AccountPayableItems_AccountPayable" msprop:Generator_UserParentTable="AccountPayable" />
      <msdata:Relationship name="FK_AccountReceivable_Customer" msdata:parent="Customer" msdata:child="AccountReceivable" msdata:parentkey="Oid" msdata:childkey="Customer" msprop:Generator_UserChildTable="AccountReceivable" msprop:Generator_ChildPropName="GetAccountReceivableRows" msprop:Generator_UserRelationName="FK_AccountReceivable_Customer" msprop:Generator_RelationVarName="relationFK_AccountReceivable_Customer" msprop:Generator_UserParentTable="Customer" msprop:Generator_ParentPropName="CustomerRow" />
      <msdata:Relationship name="FK_AccountReceivable_GargoTeminal" msdata:parent="GargoTeminal" msdata:child="AccountReceivable" msdata:parentkey="Oid" msdata:childkey="GargoTeminal" msprop:Generator_UserChildTable="AccountReceivable" msprop:Generator_ChildPropName="GetAccountReceivableRows" msprop:Generator_UserRelationName="FK_AccountReceivable_GargoTeminal" msprop:Generator_RelationVarName="relationFK_AccountReceivable_GargoTeminal" msprop:Generator_UserParentTable="GargoTeminal" msprop:Generator_ParentPropName="GargoTeminalRow" />
      <msdata:Relationship name="FK_AccountReceivableItems_AccountReceivable" msdata:parent="AccountReceivable" msdata:child="AccountReceivableItems" msdata:parentkey="Oid" msdata:childkey="AccountReceivable" msprop:Generator_UserChildTable="AccountReceivableItems" msprop:Generator_ChildPropName="GetAccountReceivableItemsRows" msprop:Generator_UserRelationName="FK_AccountReceivableItems_AccountReceivable" msprop:Generator_ParentPropName="AccountReceivableRow" msprop:Generator_RelationVarName="relationFK_AccountReceivableItems_AccountReceivable" msprop:Generator_UserParentTable="AccountReceivable" />
      <msdata:Relationship name="FK_Contact_Supplier" msdata:parent="Supplier" msdata:child="Contact" msdata:parentkey="Oid" msdata:childkey="Supplier" msprop:Generator_UserChildTable="Contact" msprop:Generator_ChildPropName="GetContactRows" msprop:Generator_UserRelationName="FK_Contact_Supplier" msprop:Generator_RelationVarName="relationFK_Contact_Supplier" msprop:Generator_UserParentTable="Supplier" msprop:Generator_ParentPropName="SupplierRow" />
      <msdata:Relationship name="FK_Customer_AccountReceivable" msdata:parent="AccountReceivable" msdata:child="Customer" msdata:parentkey="Oid" msdata:childkey="AccountReceivable" msprop:Generator_UserChildTable="Customer" msprop:Generator_ChildPropName="GetCustomerRows" msprop:Generator_UserRelationName="FK_Customer_AccountReceivable" msprop:Generator_ParentPropName="AccountReceivableRow" msprop:Generator_RelationVarName="relationFK_Customer_AccountReceivable" msprop:Generator_UserParentTable="AccountReceivable" />
      <msdata:Relationship name="FK_Customer_CustomerReturn" msdata:parent="CustomerReturn" msdata:child="Customer" msdata:parentkey="Oid" msdata:childkey="CustomerReturn" msprop:Generator_UserChildTable="Customer" msprop:Generator_ChildPropName="GetCustomerRows" msprop:Generator_UserRelationName="FK_Customer_CustomerReturn" msprop:Generator_RelationVarName="relationFK_Customer_CustomerReturn" msprop:Generator_UserParentTable="CustomerReturn" msprop:Generator_ParentPropName="CustomerReturnRow" />
      <msdata:Relationship name="FK_Customer_CustomerType" msdata:parent="CustomerCategory" msdata:child="Customer" msdata:parentkey="Oid" msdata:childkey="CustomerType" msprop:Generator_UserChildTable="Customer" msprop:Generator_ChildPropName="GetCustomerRows" msprop:Generator_UserRelationName="FK_Customer_CustomerType" msprop:Generator_RelationVarName="relationFK_Customer_CustomerType" msprop:Generator_UserParentTable="CustomerCategory" msprop:Generator_ParentPropName="CustomerCategoryRow" />
      <msdata:Relationship name="FK_Customer_DefaultGargoTeminal" msdata:parent="GargoTeminal" msdata:child="Customer" msdata:parentkey="Oid" msdata:childkey="DefaultGargoTeminal" msprop:Generator_UserChildTable="Customer" msprop:Generator_ChildPropName="GetCustomerRows" msprop:Generator_UserRelationName="FK_Customer_DefaultGargoTeminal" msprop:Generator_RelationVarName="relationFK_Customer_DefaultGargoTeminal" msprop:Generator_UserParentTable="GargoTeminal" msprop:Generator_ParentPropName="GargoTeminalRow" />
      <msdata:Relationship name="FK_Customer_SaleOrder" msdata:parent="SaleOrder" msdata:child="Customer" msdata:parentkey="Oid" msdata:childkey="SaleOrder" msprop:Generator_UserChildTable="Customer" msprop:Generator_ChildPropName="GetCustomerRows" msprop:Generator_UserRelationName="FK_Customer_SaleOrder" msprop:Generator_RelationVarName="relationFK_Customer_SaleOrder" msprop:Generator_UserParentTable="SaleOrder" msprop:Generator_ParentPropName="SaleOrderRow" />
      <msdata:Relationship name="FK_CustomerReturn_Customer" msdata:parent="Customer" msdata:child="CustomerReturn" msdata:parentkey="Oid" msdata:childkey="Customer" msprop:Generator_UserChildTable="CustomerReturn" msprop:Generator_ChildPropName="GetCustomerReturnRows" msprop:Generator_UserRelationName="FK_CustomerReturn_Customer" msprop:Generator_ParentPropName="CustomerRow" msprop:Generator_RelationVarName="relationFK_CustomerReturn_Customer" msprop:Generator_UserParentTable="Customer" />
      <msdata:Relationship name="FK_CustomerReturnItems_CustomerReturn" msdata:parent="CustomerReturn" msdata:child="CustomerReturnItems" msdata:parentkey="Oid" msdata:childkey="CustomerReturn" msprop:Generator_UserChildTable="CustomerReturnItems" msprop:Generator_ChildPropName="GetCustomerReturnItemsRows" msprop:Generator_UserRelationName="FK_CustomerReturnItems_CustomerReturn" msprop:Generator_ParentPropName="CustomerReturnRow" msprop:Generator_RelationVarName="relationFK_CustomerReturnItems_CustomerReturn" msprop:Generator_UserParentTable="CustomerReturn" />
      <msdata:Relationship name="FK_CustomerReturnItems_Product" msdata:parent="Product" msdata:child="CustomerReturnItems" msdata:parentkey="Oid" msdata:childkey="Product" msprop:Generator_UserChildTable="CustomerReturnItems" msprop:Generator_ChildPropName="GetCustomerReturnItemsRows" msprop:Generator_UserRelationName="FK_CustomerReturnItems_Product" msprop:Generator_RelationVarName="relationFK_CustomerReturnItems_Product" msprop:Generator_UserParentTable="Product" msprop:Generator_ParentPropName="ProductRow" />
      <msdata:Relationship name="FK_Employee_InventoryAdjustment" msdata:parent="InventoryAdjustment" msdata:child="Employee" msdata:parentkey="Oid" msdata:childkey="InventoryAdjustment" msprop:Generator_UserChildTable="Employee" msprop:Generator_ChildPropName="GetEmployeeRows" msprop:Generator_UserRelationName="FK_Employee_InventoryAdjustment" msprop:Generator_RelationVarName="relationFK_Employee_InventoryAdjustment" msprop:Generator_UserParentTable="InventoryAdjustment" msprop:Generator_ParentPropName="InventoryAdjustmentRow" />
      <msdata:Relationship name="FK_Employee_InventoryTransfer" msdata:parent="InventoryTransfer" msdata:child="Employee" msdata:parentkey="Oid" msdata:childkey="InventoryTransfer" msprop:Generator_UserChildTable="Employee" msprop:Generator_ChildPropName="GetEmployeeRows" msprop:Generator_UserRelationName="FK_Employee_InventoryTransfer" msprop:Generator_RelationVarName="relationFK_Employee_InventoryTransfer" msprop:Generator_UserParentTable="InventoryTransfer" msprop:Generator_ParentPropName="InventoryTransferRow" />
      <msdata:Relationship name="FK_Employee_InventoryVerification" msdata:parent="InventoryVerification" msdata:child="Employee" msdata:parentkey="Oid" msdata:childkey="InventoryVerification" msprop:Generator_UserChildTable="Employee" msprop:Generator_ChildPropName="GetEmployeeRows" msprop:Generator_UserRelationName="FK_Employee_InventoryVerification" msprop:Generator_RelationVarName="relationFK_Employee_InventoryVerification" msprop:Generator_UserParentTable="InventoryVerification" msprop:Generator_ParentPropName="InventoryVerificationRow" />
      <msdata:Relationship name="FK_Employee_SaleOrder" msdata:parent="SaleOrder" msdata:child="Employee" msdata:parentkey="Oid" msdata:childkey="SaleOrder" msprop:Generator_UserChildTable="Employee" msprop:Generator_ChildPropName="GetEmployeeRows" msprop:Generator_UserRelationName="FK_Employee_SaleOrder" msprop:Generator_RelationVarName="relationFK_Employee_SaleOrder" msprop:Generator_UserParentTable="SaleOrder" msprop:Generator_ParentPropName="SaleOrderRow" />
      <msdata:Relationship name="FK_Employee_ShopStore" msdata:parent="ShopStore" msdata:child="Employee" msdata:parentkey="Oid" msdata:childkey="ShopStore" msprop:Generator_UserChildTable="Employee" msprop:Generator_ChildPropName="GetEmployeeRows" msprop:Generator_UserRelationName="FK_Employee_ShopStore" msprop:Generator_RelationVarName="relationFK_Employee_ShopStore" msprop:Generator_UserParentTable="ShopStore" msprop:Generator_ParentPropName="ShopStoreRow" />
      <msdata:Relationship name="FK_InOutAccount_InOutAccountType" msdata:parent="InOutAccountType" msdata:child="InOutAccount" msdata:parentkey="Oid" msdata:childkey="InOutAccountType" msprop:Generator_UserChildTable="InOutAccount" msprop:Generator_ChildPropName="GetInOutAccountRows" msprop:Generator_UserRelationName="FK_InOutAccount_InOutAccountType" msprop:Generator_RelationVarName="relationFK_InOutAccount_InOutAccountType" msprop:Generator_UserParentTable="InOutAccountType" msprop:Generator_ParentPropName="InOutAccountTypeRow" />
      <msdata:Relationship name="FK_InOutAccountType_InOutAccount" msdata:parent="InOutAccount" msdata:child="InOutAccountType" msdata:parentkey="Oid" msdata:childkey="InOutAccount" msprop:Generator_UserChildTable="InOutAccountType" msprop:Generator_ChildPropName="GetInOutAccountTypeRows" msprop:Generator_UserRelationName="FK_InOutAccountType_InOutAccount" msprop:Generator_ParentPropName="InOutAccountRow" msprop:Generator_RelationVarName="relationFK_InOutAccountType_InOutAccount" msprop:Generator_UserParentTable="InOutAccount" />
      <msdata:Relationship name="FK_Inquiry_PurchasePerson" msdata:parent="Employee" msdata:child="Inquiry" msdata:parentkey="Oid" msdata:childkey="PurchasePerson" msprop:Generator_UserChildTable="Inquiry" msprop:Generator_ChildPropName="GetInquiryRows" msprop:Generator_UserRelationName="FK_Inquiry_PurchasePerson" msprop:Generator_ParentPropName="EmployeeRow" msprop:Generator_RelationVarName="relationFK_Inquiry_PurchasePerson" msprop:Generator_UserParentTable="Employee" />
      <msdata:Relationship name="FK_Inquiry_ShipVia" msdata:parent="ShipVia" msdata:child="Inquiry" msdata:parentkey="Oid" msdata:childkey="ShipVia" msprop:Generator_UserChildTable="Inquiry" msprop:Generator_ChildPropName="GetInquiryRows" msprop:Generator_UserRelationName="FK_Inquiry_ShipVia" msprop:Generator_RelationVarName="relationFK_Inquiry_ShipVia" msprop:Generator_UserParentTable="ShipVia" msprop:Generator_ParentPropName="ShipViaRow" />
      <msdata:Relationship name="FK_Inquiry_Supplier" msdata:parent="Supplier" msdata:child="Inquiry" msdata:parentkey="Oid" msdata:childkey="Supplier" msprop:Generator_UserChildTable="Inquiry" msprop:Generator_ChildPropName="GetInquiryRows" msprop:Generator_UserRelationName="FK_Inquiry_Supplier" msprop:Generator_RelationVarName="relationFK_Inquiry_Supplier" msprop:Generator_UserParentTable="Supplier" msprop:Generator_ParentPropName="SupplierRow" />
      <msdata:Relationship name="FK_InquiryItems_Inquiry" msdata:parent="Inquiry" msdata:child="InquiryItems" msdata:parentkey="Oid" msdata:childkey="Inquiry" msprop:Generator_UserChildTable="InquiryItems" msprop:Generator_ChildPropName="GetInquiryItemsRows" msprop:Generator_UserRelationName="FK_InquiryItems_Inquiry" msprop:Generator_ParentPropName="InquiryRow" msprop:Generator_RelationVarName="relationFK_InquiryItems_Inquiry" msprop:Generator_UserParentTable="Inquiry" />
      <msdata:Relationship name="FK_InquiryItems_Product" msdata:parent="Product" msdata:child="InquiryItems" msdata:parentkey="Oid" msdata:childkey="Product" msprop:Generator_UserChildTable="InquiryItems" msprop:Generator_ChildPropName="GetInquiryItemsRows" msprop:Generator_UserRelationName="FK_InquiryItems_Product" msprop:Generator_RelationVarName="relationFK_InquiryItems_Product" msprop:Generator_UserParentTable="Product" msprop:Generator_ParentPropName="ProductRow" />
      <msdata:Relationship name="FK_InventoryAdjustment_Employee" msdata:parent="Employee" msdata:child="InventoryAdjustment" msdata:parentkey="Oid" msdata:childkey="Employee" msprop:Generator_UserChildTable="InventoryAdjustment" msprop:Generator_ChildPropName="GetInventoryAdjustmentRows" msprop:Generator_UserRelationName="FK_InventoryAdjustment_Employee" msprop:Generator_ParentPropName="EmployeeRow" msprop:Generator_RelationVarName="relationFK_InventoryAdjustment_Employee" msprop:Generator_UserParentTable="Employee" />
      <msdata:Relationship name="FK_InventoryAdjustmentItems_InventoryAdjustment" msdata:parent="InventoryAdjustment" msdata:child="InventoryAdjustmentItems" msdata:parentkey="Oid" msdata:childkey="InventoryAdjustment" msprop:Generator_UserChildTable="InventoryAdjustmentItems" msprop:Generator_ChildPropName="GetInventoryAdjustmentItemsRows" msprop:Generator_UserRelationName="FK_InventoryAdjustmentItems_InventoryAdjustment" msprop:Generator_ParentPropName="InventoryAdjustmentRow" msprop:Generator_RelationVarName="relationFK_InventoryAdjustmentItems_InventoryAdjustment" msprop:Generator_UserParentTable="InventoryAdjustment" />
      <msdata:Relationship name="FK_InventoryAdjustmentItems_Product" msdata:parent="Product" msdata:child="InventoryAdjustmentItems" msdata:parentkey="Oid" msdata:childkey="Product" msprop:Generator_UserChildTable="InventoryAdjustmentItems" msprop:Generator_ChildPropName="GetInventoryAdjustmentItemsRows" msprop:Generator_UserRelationName="FK_InventoryAdjustmentItems_Product" msprop:Generator_RelationVarName="relationFK_InventoryAdjustmentItems_Product" msprop:Generator_UserParentTable="Product" msprop:Generator_ParentPropName="ProductRow" />
      <msdata:Relationship name="FK_InventoryTransfer_Employee" msdata:parent="Employee" msdata:child="InventoryTransfer" msdata:parentkey="Oid" msdata:childkey="Employee" msprop:Generator_UserChildTable="InventoryTransfer" msprop:Generator_ChildPropName="GetInventoryTransferRows" msprop:Generator_UserRelationName="FK_InventoryTransfer_Employee" msprop:Generator_ParentPropName="EmployeeRow" msprop:Generator_RelationVarName="relationFK_InventoryTransfer_Employee" msprop:Generator_UserParentTable="Employee" />
      <msdata:Relationship name="FK_InventoryTransfer_ExportShopStore" msdata:parent="ShopStore" msdata:child="InventoryTransfer" msdata:parentkey="Oid" msdata:childkey="ExportShopStore" msprop:Generator_UserChildTable="InventoryTransfer" msprop:Generator_ChildPropName="GetInventoryTransferRowsByFK_InventoryTransfer_ExportShopStore" msprop:Generator_UserRelationName="FK_InventoryTransfer_ExportShopStore" msprop:Generator_RelationVarName="relationFK_InventoryTransfer_ExportShopStore" msprop:Generator_UserParentTable="ShopStore" msprop:Generator_ParentPropName="ShopStoreRowByFK_InventoryTransfer_ExportShopStore" />
      <msdata:Relationship name="FK_InventoryTransfer_ImportShopStore" msdata:parent="ShopStore" msdata:child="InventoryTransfer" msdata:parentkey="Oid" msdata:childkey="ImportShopStore" msprop:Generator_UserChildTable="InventoryTransfer" msprop:Generator_ChildPropName="GetInventoryTransferRowsByFK_InventoryTransfer_ImportShopStore" msprop:Generator_UserRelationName="FK_InventoryTransfer_ImportShopStore" msprop:Generator_RelationVarName="relationFK_InventoryTransfer_ImportShopStore" msprop:Generator_UserParentTable="ShopStore" msprop:Generator_ParentPropName="ShopStoreRowByFK_InventoryTransfer_ImportShopStore" />
      <msdata:Relationship name="FK_InventoryTransferItems_InventoryTransfer" msdata:parent="InventoryTransfer" msdata:child="InventoryTransferItems" msdata:parentkey="Oid" msdata:childkey="InventoryTransfer" msprop:Generator_UserChildTable="InventoryTransferItems" msprop:Generator_ChildPropName="GetInventoryTransferItemsRows" msprop:Generator_UserRelationName="FK_InventoryTransferItems_InventoryTransfer" msprop:Generator_ParentPropName="InventoryTransferRow" msprop:Generator_RelationVarName="relationFK_InventoryTransferItems_InventoryTransfer" msprop:Generator_UserParentTable="InventoryTransfer" />
      <msdata:Relationship name="FK_InventoryTransferItems_Product" msdata:parent="Product" msdata:child="InventoryTransferItems" msdata:parentkey="Oid" msdata:childkey="Product" msprop:Generator_UserChildTable="InventoryTransferItems" msprop:Generator_ChildPropName="GetInventoryTransferItemsRows" msprop:Generator_UserRelationName="FK_InventoryTransferItems_Product" msprop:Generator_RelationVarName="relationFK_InventoryTransferItems_Product" msprop:Generator_UserParentTable="Product" msprop:Generator_ParentPropName="ProductRow" />
      <msdata:Relationship name="FK_InventoryVerification_Employee" msdata:parent="Employee" msdata:child="InventoryVerification" msdata:parentkey="Oid" msdata:childkey="Employee" msprop:Generator_UserChildTable="InventoryVerification" msprop:Generator_ChildPropName="GetInventoryVerificationRowsByFK_InventoryVerification_Employee" msprop:Generator_UserRelationName="FK_InventoryVerification_Employee" msprop:Generator_ParentPropName="EmployeeRowByFK_InventoryVerification_Employee" msprop:Generator_RelationVarName="relationFK_InventoryVerification_Employee" msprop:Generator_UserParentTable="Employee" />
      <msdata:Relationship name="FK_InventoryVerification_ShopStore" msdata:parent="ShopStore" msdata:child="InventoryVerification" msdata:parentkey="Oid" msdata:childkey="ShopStore" msprop:Generator_UserChildTable="InventoryVerification" msprop:Generator_ChildPropName="GetInventoryVerificationRows" msprop:Generator_UserRelationName="FK_InventoryVerification_ShopStore" msprop:Generator_RelationVarName="relationFK_InventoryVerification_ShopStore" msprop:Generator_UserParentTable="ShopStore" msprop:Generator_ParentPropName="ShopStoreRow" />
      <msdata:Relationship name="FK_InventoryVerification_UpdateUser" msdata:parent="Employee" msdata:child="InventoryVerification" msdata:parentkey="Oid" msdata:childkey="UpdateUser" msprop:Generator_UserChildTable="InventoryVerification" msprop:Generator_ChildPropName="GetInventoryVerificationRowsByFK_InventoryVerification_UpdateUser" msprop:Generator_UserRelationName="FK_InventoryVerification_UpdateUser" msprop:Generator_ParentPropName="EmployeeRowByFK_InventoryVerification_UpdateUser" msprop:Generator_RelationVarName="relationFK_InventoryVerification_UpdateUser" msprop:Generator_UserParentTable="Employee" />
      <msdata:Relationship name="FK_InventoryVerificationItems_InventoryVerification" msdata:parent="InventoryVerification" msdata:child="InventoryVerificationItems" msdata:parentkey="Oid" msdata:childkey="InventoryVerification" msprop:Generator_UserChildTable="InventoryVerificationItems" msprop:Generator_ChildPropName="GetInventoryVerificationItemsRows" msprop:Generator_UserRelationName="FK_InventoryVerificationItems_InventoryVerification" msprop:Generator_ParentPropName="InventoryVerificationRow" msprop:Generator_RelationVarName="relationFK_InventoryVerificationItems_InventoryVerification" msprop:Generator_UserParentTable="InventoryVerification" />
      <msdata:Relationship name="FK_InventoryVerificationItems_Product" msdata:parent="Product" msdata:child="InventoryVerificationItems" msdata:parentkey="Oid" msdata:childkey="Product" msprop:Generator_UserChildTable="InventoryVerificationItems" msprop:Generator_ChildPropName="GetInventoryVerificationItemsRows" msprop:Generator_UserRelationName="FK_InventoryVerificationItems_Product" msprop:Generator_RelationVarName="relationFK_InventoryVerificationItems_Product" msprop:Generator_UserParentTable="Product" msprop:Generator_ParentPropName="ProductRow" />
      <msdata:Relationship name="FK_Product_CustomerReturnItems" msdata:parent="CustomerReturnItems" msdata:child="Product" msdata:parentkey="Oid" msdata:childkey="CustomerReturnItems" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_CustomerReturnItems" msprop:Generator_ParentPropName="CustomerReturnItemsRow" msprop:Generator_RelationVarName="relationFK_Product_CustomerReturnItems" msprop:Generator_UserParentTable="CustomerReturnItems" />
      <msdata:Relationship name="FK_Product_InquiryItems" msdata:parent="InquiryItems" msdata:child="Product" msdata:parentkey="Oid" msdata:childkey="InquiryItems" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_InquiryItems" msprop:Generator_ParentPropName="InquiryItemsRow" msprop:Generator_RelationVarName="relationFK_Product_InquiryItems" msprop:Generator_UserParentTable="InquiryItems" />
      <msdata:Relationship name="FK_Product_InventoryAdjustmentItems" msdata:parent="InventoryAdjustmentItems" msdata:child="Product" msdata:parentkey="Oid" msdata:childkey="InventoryAdjustmentItems" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_InventoryAdjustmentItems" msprop:Generator_ParentPropName="InventoryAdjustmentItemsRow" msprop:Generator_RelationVarName="relationFK_Product_InventoryAdjustmentItems" msprop:Generator_UserParentTable="InventoryAdjustmentItems" />
      <msdata:Relationship name="FK_Product_InventoryTransferItems" msdata:parent="InventoryTransferItems" msdata:child="Product" msdata:parentkey="Oid" msdata:childkey="InventoryTransferItems" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_InventoryTransferItems" msprop:Generator_ParentPropName="InventoryTransferItemsRow" msprop:Generator_RelationVarName="relationFK_Product_InventoryTransferItems" msprop:Generator_UserParentTable="InventoryTransferItems" />
      <msdata:Relationship name="FK_Product_InventoryVerificationItems" msdata:parent="InventoryVerificationItems" msdata:child="Product" msdata:parentkey="Oid" msdata:childkey="InventoryVerificationItems" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_InventoryVerificationItems" msprop:Generator_ParentPropName="InventoryVerificationItemsRow" msprop:Generator_RelationVarName="relationFK_Product_InventoryVerificationItems" msprop:Generator_UserParentTable="InventoryVerificationItems" />
      <msdata:Relationship name="FK_Product_ProductCategory" msdata:parent="ProductCategory" msdata:child="Product" msdata:parentkey="Oid" msdata:childkey="ProductCategory" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_ProductCategory" msprop:Generator_RelationVarName="relationFK_Product_ProductCategory" msprop:Generator_UserParentTable="ProductCategory" msprop:Generator_ParentPropName="ProductCategoryRow" />
      <msdata:Relationship name="FK_Product_PurchasingOrderItems" msdata:parent="PurchasingOrderItems" msdata:child="Product" msdata:parentkey="Oid" msdata:childkey="PurchasingOrderItems" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_PurchasingOrderItems" msprop:Generator_RelationVarName="relationFK_Product_PurchasingOrderItems" msprop:Generator_UserParentTable="PurchasingOrderItems" msprop:Generator_ParentPropName="PurchasingOrderItemsRow" />
      <msdata:Relationship name="FK_Product_PurchasingReturnItems" msdata:parent="PurchasingReturnItems" msdata:child="Product" msdata:parentkey="Oid" msdata:childkey="PurchasingReturnItems" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_PurchasingReturnItems" msprop:Generator_RelationVarName="relationFK_Product_PurchasingReturnItems" msprop:Generator_UserParentTable="PurchasingReturnItems" msprop:Generator_ParentPropName="PurchasingReturnItemsRow" />
      <msdata:Relationship name="FK_Product_QuotationItems" msdata:parent="QuotationItems" msdata:child="Product" msdata:parentkey="Oid" msdata:childkey="QuotationItems" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_QuotationItems" msprop:Generator_RelationVarName="relationFK_Product_QuotationItems" msprop:Generator_UserParentTable="QuotationItems" msprop:Generator_ParentPropName="QuotationItemsRow" />
      <msdata:Relationship name="FK_Product_SaleOrderItems" msdata:parent="SaleOrderItems" msdata:child="Product" msdata:parentkey="Oid" msdata:childkey="SaleOrderItems" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_SaleOrderItems" msprop:Generator_RelationVarName="relationFK_Product_SaleOrderItems" msprop:Generator_UserParentTable="SaleOrderItems" msprop:Generator_ParentPropName="SaleOrderItemsRow" />
      <msdata:Relationship name="FK_Product_Unit" msdata:parent="Unit" msdata:child="Product" msdata:parentkey="Oid" msdata:childkey="Unit" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_Unit" msprop:Generator_RelationVarName="relationFK_Product_Unit" msprop:Generator_UserParentTable="Unit" msprop:Generator_ParentPropName="UnitRow" />
      <msdata:Relationship name="FK_ProductCategory_Product" msdata:parent="Product" msdata:child="ProductCategory" msdata:parentkey="Oid" msdata:childkey="Product" msprop:Generator_UserChildTable="ProductCategory" msprop:Generator_ChildPropName="GetProductCategoryRows" msprop:Generator_UserRelationName="FK_ProductCategory_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_ProductCategory_Product" msprop:Generator_UserParentTable="Product" />
      <msdata:Relationship name="FK_PurchasingOrder_GargoTeminal" msdata:parent="GargoTeminal" msdata:child="PurchasingOrder" msdata:parentkey="Oid" msdata:childkey="GargoTeminal" msprop:Generator_UserChildTable="PurchasingOrder" msprop:Generator_ChildPropName="GetPurchasingOrderRows" msprop:Generator_UserRelationName="FK_PurchasingOrder_GargoTeminal" msprop:Generator_ParentPropName="GargoTeminalRow" msprop:Generator_RelationVarName="relationFK_PurchasingOrder_GargoTeminal" msprop:Generator_UserParentTable="GargoTeminal" />
      <msdata:Relationship name="FK_PurchasingOrder_PurchasePerson" msdata:parent="Employee" msdata:child="PurchasingOrder" msdata:parentkey="Oid" msdata:childkey="PurchasePerson" msprop:Generator_UserChildTable="PurchasingOrder" msprop:Generator_ChildPropName="GetPurchasingOrderRows" msprop:Generator_UserRelationName="FK_PurchasingOrder_PurchasePerson" msprop:Generator_ParentPropName="EmployeeRow" msprop:Generator_RelationVarName="relationFK_PurchasingOrder_PurchasePerson" msprop:Generator_UserParentTable="Employee" />
      <msdata:Relationship name="FK_PurchasingOrder_ShipVia" msdata:parent="ShipVia" msdata:child="PurchasingOrder" msdata:parentkey="Oid" msdata:childkey="ShipVia" msprop:Generator_UserChildTable="PurchasingOrder" msprop:Generator_ChildPropName="GetPurchasingOrderRows" msprop:Generator_UserRelationName="FK_PurchasingOrder_ShipVia" msprop:Generator_RelationVarName="relationFK_PurchasingOrder_ShipVia" msprop:Generator_UserParentTable="ShipVia" msprop:Generator_ParentPropName="ShipViaRow" />
      <msdata:Relationship name="FK_PurchasingOrder_Supplier" msdata:parent="Supplier" msdata:child="PurchasingOrder" msdata:parentkey="Oid" msdata:childkey="Supplier" msprop:Generator_UserChildTable="PurchasingOrder" msprop:Generator_ChildPropName="GetPurchasingOrderRows" msprop:Generator_UserRelationName="FK_PurchasingOrder_Supplier" msprop:Generator_RelationVarName="relationFK_PurchasingOrder_Supplier" msprop:Generator_UserParentTable="Supplier" msprop:Generator_ParentPropName="SupplierRow" />
      <msdata:Relationship name="FK_PurchasingOrderItems_Product" msdata:parent="Product" msdata:child="PurchasingOrderItems" msdata:parentkey="Oid" msdata:childkey="Product" msprop:Generator_UserChildTable="PurchasingOrderItems" msprop:Generator_ChildPropName="GetPurchasingOrderItemsRows" msprop:Generator_UserRelationName="FK_PurchasingOrderItems_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_PurchasingOrderItems_Product" msprop:Generator_UserParentTable="Product" />
      <msdata:Relationship name="FK_PurchasingOrderItems_PurchasingOrder" msdata:parent="PurchasingOrder" msdata:child="PurchasingOrderItems" msdata:parentkey="Oid" msdata:childkey="PurchasingOrder" msprop:Generator_UserChildTable="PurchasingOrderItems" msprop:Generator_ChildPropName="GetPurchasingOrderItemsRows" msprop:Generator_UserRelationName="FK_PurchasingOrderItems_PurchasingOrder" msprop:Generator_ParentPropName="PurchasingOrderRow" msprop:Generator_RelationVarName="relationFK_PurchasingOrderItems_PurchasingOrder" msprop:Generator_UserParentTable="PurchasingOrder" />
      <msdata:Relationship name="FK_PurchasingReturn_Supplier" msdata:parent="Supplier" msdata:child="PurchasingReturn" msdata:parentkey="Oid" msdata:childkey="Supplier" msprop:Generator_UserChildTable="PurchasingReturn" msprop:Generator_ChildPropName="GetPurchasingReturnRows" msprop:Generator_UserRelationName="FK_PurchasingReturn_Supplier" msprop:Generator_RelationVarName="relationFK_PurchasingReturn_Supplier" msprop:Generator_UserParentTable="Supplier" msprop:Generator_ParentPropName="SupplierRow" />
      <msdata:Relationship name="FK_PurchasingReturnItems_Product" msdata:parent="Product" msdata:child="PurchasingReturnItems" msdata:parentkey="Oid" msdata:childkey="Product" msprop:Generator_UserChildTable="PurchasingReturnItems" msprop:Generator_ChildPropName="GetPurchasingReturnItemsRows" msprop:Generator_UserRelationName="FK_PurchasingReturnItems_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_PurchasingReturnItems_Product" msprop:Generator_UserParentTable="Product" />
      <msdata:Relationship name="FK_PurchasingReturnItems_PurchasingReturn" msdata:parent="PurchasingReturn" msdata:child="PurchasingReturnItems" msdata:parentkey="Oid" msdata:childkey="PurchasingReturn" msprop:Generator_UserChildTable="PurchasingReturnItems" msprop:Generator_ChildPropName="GetPurchasingReturnItemsRows" msprop:Generator_UserRelationName="FK_PurchasingReturnItems_PurchasingReturn" msprop:Generator_ParentPropName="PurchasingReturnRow" msprop:Generator_RelationVarName="relationFK_PurchasingReturnItems_PurchasingReturn" msprop:Generator_UserParentTable="PurchasingReturn" />
      <msdata:Relationship name="FK_QuotationItems_Product" msdata:parent="Product" msdata:child="QuotationItems" msdata:parentkey="Oid" msdata:childkey="Product" msprop:Generator_UserChildTable="QuotationItems" msprop:Generator_ChildPropName="GetQuotationItemsRows" msprop:Generator_UserRelationName="FK_QuotationItems_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_QuotationItems_Product" msprop:Generator_UserParentTable="Product" />
      <msdata:Relationship name="FK_QuotationItems_Quotation" msdata:parent="Quotation" msdata:child="QuotationItems" msdata:parentkey="Oid" msdata:childkey="Quotation" msprop:Generator_UserChildTable="QuotationItems" msprop:Generator_ChildPropName="GetQuotationItemsRows" msprop:Generator_UserRelationName="FK_QuotationItems_Quotation" msprop:Generator_ParentPropName="QuotationRow" msprop:Generator_RelationVarName="relationFK_QuotationItems_Quotation" msprop:Generator_UserParentTable="Quotation" />
      <msdata:Relationship name="FK_SaleOrder_Customer" msdata:parent="Customer" msdata:child="SaleOrder" msdata:parentkey="Oid" msdata:childkey="Customer" msprop:Generator_UserChildTable="SaleOrder" msprop:Generator_ChildPropName="GetSaleOrderRows" msprop:Generator_UserRelationName="FK_SaleOrder_Customer" msprop:Generator_ParentPropName="CustomerRow" msprop:Generator_RelationVarName="relationFK_SaleOrder_Customer" msprop:Generator_UserParentTable="Customer" />
      <msdata:Relationship name="FK_SaleOrder_Employee" msdata:parent="Employee" msdata:child="SaleOrder" msdata:parentkey="Oid" msdata:childkey="Employee" msprop:Generator_UserChildTable="SaleOrder" msprop:Generator_ChildPropName="GetSaleOrderRows" msprop:Generator_UserRelationName="FK_SaleOrder_Employee" msprop:Generator_ParentPropName="EmployeeRow" msprop:Generator_RelationVarName="relationFK_SaleOrder_Employee" msprop:Generator_UserParentTable="Employee" />
      <msdata:Relationship name="FK_SaleOrder_GargoTeminal" msdata:parent="GargoTeminal" msdata:child="SaleOrder" msdata:parentkey="Oid" msdata:childkey="GargoTeminal" msprop:Generator_UserChildTable="SaleOrder" msprop:Generator_ChildPropName="GetSaleOrderRows" msprop:Generator_UserRelationName="FK_SaleOrder_GargoTeminal" msprop:Generator_ParentPropName="GargoTeminalRow" msprop:Generator_RelationVarName="relationFK_SaleOrder_GargoTeminal" msprop:Generator_UserParentTable="GargoTeminal" />
      <msdata:Relationship name="FK_SaleOrderItems_Product" msdata:parent="Product" msdata:child="SaleOrderItems" msdata:parentkey="Oid" msdata:childkey="Product" msprop:Generator_UserChildTable="SaleOrderItems" msprop:Generator_ChildPropName="GetSaleOrderItemsRows" msprop:Generator_UserRelationName="FK_SaleOrderItems_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_SaleOrderItems_Product" msprop:Generator_UserParentTable="Product" />
      <msdata:Relationship name="FK_SaleOrderItems_SaleOrder" msdata:parent="SaleOrder" msdata:child="SaleOrderItems" msdata:parentkey="Oid" msdata:childkey="SaleOrder" msprop:Generator_UserChildTable="SaleOrderItems" msprop:Generator_ChildPropName="GetSaleOrderItemsRows" msprop:Generator_UserRelationName="FK_SaleOrderItems_SaleOrder" msprop:Generator_ParentPropName="SaleOrderRow" msprop:Generator_RelationVarName="relationFK_SaleOrderItems_SaleOrder" msprop:Generator_UserParentTable="SaleOrder" />
      <msdata:Relationship name="FK_ShipVia_PurchasingOrder" msdata:parent="PurchasingOrder" msdata:child="ShipVia" msdata:parentkey="Oid" msdata:childkey="PurchasingOrder" msprop:Generator_UserChildTable="ShipVia" msprop:Generator_ChildPropName="GetShipViaRows" msprop:Generator_UserRelationName="FK_ShipVia_PurchasingOrder" msprop:Generator_ParentPropName="PurchasingOrderRow" msprop:Generator_RelationVarName="relationFK_ShipVia_PurchasingOrder" msprop:Generator_UserParentTable="PurchasingOrder" />
      <msdata:Relationship name="FK_ShopStore_InventoryTransfer" msdata:parent="InventoryTransfer" msdata:child="ShopStore" msdata:parentkey="Oid" msdata:childkey="InventoryTransfer" msprop:Generator_UserChildTable="ShopStore" msprop:Generator_ChildPropName="GetShopStoreRows" msprop:Generator_UserRelationName="FK_ShopStore_InventoryTransfer" msprop:Generator_ParentPropName="InventoryTransferRow" msprop:Generator_RelationVarName="relationFK_ShopStore_InventoryTransfer" msprop:Generator_UserParentTable="InventoryTransfer" />
      <msdata:Relationship name="FK_ShopStore_InventoryVerification" msdata:parent="InventoryVerification" msdata:child="ShopStore" msdata:parentkey="Oid" msdata:childkey="InventoryVerification" msprop:Generator_UserChildTable="ShopStore" msprop:Generator_ChildPropName="GetShopStoreRows" msprop:Generator_UserRelationName="FK_ShopStore_InventoryVerification" msprop:Generator_ParentPropName="InventoryVerificationRow" msprop:Generator_RelationVarName="relationFK_ShopStore_InventoryVerification" msprop:Generator_UserParentTable="InventoryVerification" />
      <msdata:Relationship name="FK_Supplier_AccountPayable" msdata:parent="AccountPayable" msdata:child="Supplier" msdata:parentkey="Oid" msdata:childkey="AccountPayable" msprop:Generator_UserChildTable="Supplier" msprop:Generator_ChildPropName="GetSupplierRows" msprop:Generator_UserRelationName="FK_Supplier_AccountPayable" msprop:Generator_ParentPropName="AccountPayableRow" msprop:Generator_RelationVarName="relationFK_Supplier_AccountPayable" msprop:Generator_UserParentTable="AccountPayable" />
      <msdata:Relationship name="FK_Supplier_Inquiry" msdata:parent="Inquiry" msdata:child="Supplier" msdata:parentkey="Oid" msdata:childkey="Inquiry" msprop:Generator_UserChildTable="Supplier" msprop:Generator_ChildPropName="GetSupplierRows" msprop:Generator_UserRelationName="FK_Supplier_Inquiry" msprop:Generator_ParentPropName="InquiryRow" msprop:Generator_RelationVarName="relationFK_Supplier_Inquiry" msprop:Generator_UserParentTable="Inquiry" />
      <msdata:Relationship name="FK_Supplier_PurchasingReturn" msdata:parent="PurchasingReturn" msdata:child="Supplier" msdata:parentkey="Oid" msdata:childkey="PurchasingReturn" msprop:Generator_UserChildTable="Supplier" msprop:Generator_ChildPropName="GetSupplierRows" msprop:Generator_UserRelationName="FK_Supplier_PurchasingReturn" msprop:Generator_ParentPropName="PurchasingReturnRow" msprop:Generator_RelationVarName="relationFK_Supplier_PurchasingReturn" msprop:Generator_UserParentTable="PurchasingReturn" />
      <msdata:Relationship name="FK_Unit_Product" msdata:parent="Product" msdata:child="Unit" msdata:parentkey="Oid" msdata:childkey="Product" msprop:Generator_UserChildTable="Unit" msprop:Generator_ChildPropName="GetUnitRows" msprop:Generator_UserRelationName="FK_Unit_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_Unit_Product" msprop:Generator_UserParentTable="Product" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>